/* Koplietojamas lapas kajenes (footer) stili. */

/* ===== FOOTER STILI (LABOTS - LIELĀKS TEKSTS, PILNA ADRESE) ===== */

/* Galvenais footer konteiners */
.main-footer {
    background: #520505;
    color: white;
    font-family: 'Roboto', sans-serif;
    padding: 20px 0 0;
}

/* Footer saturs */
.footer-content {
    padding: 20px 0 15px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Grid izkārtojums */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

/* Kreisā puse (Logo un kontakti) */
.footer-left {
    display: flex;
    align-items: flex-start;
    gap: 25px;
}

/* Logo sadaļa */
.footer-logo-section {
    flex-shrink: 0;
    margin-top: 5px;
}

.footer-logo-image {
    height: 50px;
    width: auto;
    filter: none;
    border-radius: 14px;
}

.footer-logo-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.footer-logo-icon {
    background: #ffcc00;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-icon i {
    font-size: 20px;
    color: #520505;
}

.footer-logo-text h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    text-align: center;
    white-space: nowrap;
}

.footer-logo-text p {
    margin: 3px 0 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

/* Kontaktinformācija - VIENĀ RINDĀ (blakus) ar LIELĀKU TEKSTU */
.footer-contact-info {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
}

.footer-contact-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid #ffcc00;
    min-width: 180px;
    flex: 1;
    min-height: 100px;
    justify-content: flex-start;
}

.footer-contact-icon {
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 10px;
}

.footer-contact-icon i {
    font-size: 14px;
    color: #ffcc00;
}

.footer-contact-text {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.contact-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    white-space: nowrap;
}

.contact-value {
    font-size: 14px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1.4;
    margin-bottom: 3px;
    word-break: break-word;
}

.contact-value.email-link,
.contact-value.phone-link {
    white-space: nowrap;
    word-break: normal;
}

.contact-value:hover {
    color: #ffcc00;
    text-decoration: underline;
}

.contact-detail {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    word-break: break-word;
}

/* Specials stils adresei, lai parādās divās rindās */
.footer-contact-item:nth-child(1) .contact-value {
    line-height: 1.3;
    margin-bottom: 2px;
}

.footer-contact-item:nth-child(1) .contact-detail {
    font-size: 12px;
    line-height: 1.3;
}

/* Labā puse (Sociālie mediji UN PĒC TĀM POGU) */
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 25px;
    margin-top: 5px;
}

/* Sociālo mediju sadaļa */
.footer-social-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    width: 100%;
}

.footer-social-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: white;
    white-space: nowrap;
    text-align: right;
}

.footer-social-icons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.footer-social-link.facebook {
    background: #3b5998;
}

.footer-social-link.instagram {
    background: linear-gradient(45deg, #405DE6, #833AB4);
}

.footer-social-link.youtube {
    background: #FF0000;
}

.footer-social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    border-color: transparent;
}

/* Kontaktu saite - TAGAD ZEM SOCIĀLĀJIEM TĪKLIEM */
.footer-links-section {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.footer-main-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: #ffcc00;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    white-space: normal;
    flex-wrap: wrap;
    box-shadow: none;
    border: 2px solid #ffcc00;
}

.footer-main-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 204, 0, 0.3);
    background: #fecb003c;
}

.footer-main-link i {
    font-size: 12px;
    transition: transform 0.2s;
}

.footer-main-link:hover i {
    transform: translateX(3px);
}

/* Apakšējā footer josla */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 0;
    background-color: rgba(0, 0, 0, 0.15);
    margin-top: 15px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.copyright p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-legal {
    display: flex;
    gap: 15px;
}

.legal-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
    white-space: nowrap;
}

.legal-link:hover {
    color: #ffcc00;
    text-decoration: underline;
}

/* Atpakaļ uz augšu poga */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #a71616;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    font-weight: 500;
    font-size: 12px;
    box-shadow: 0 3px 8px rgba(134, 13, 13, 0.61);
    z-index: 999;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #790a0a;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(201, 35, 13, 0.445);
}

.back-to-top i {
    font-size: 18px;
}

.back-to-top span {
    display: none;
}

/* Responsive dizains */
@media (max-width: 1200px) {
    .footer-contact-item {
        min-width: 160px;
        padding: 12px 10px;
    }
}

@media (max-width: 1100px) {
    .footer-contact-info {
        gap: 15px;
    }
    
    .footer-contact-item {
        min-width: 150px;
        min-height: 110px;
    }
}

@media (max-width: 992px) {
    .footer-grid {
        gap: 25px;
    }
    
    .footer-contact-info {
        gap: 12px;
    }
    
    .footer-contact-item {
        min-width: 140px;
        min-height: 105px;
        padding: 10px 8px;
    }
    
    .contact-value {
        font-size: 13px;
    }
    
    .contact-detail {
        font-size: 12px;
    }
    
    .footer-contact-item:nth-child(1) .contact-detail {
        font-size: 11px;
    }
}

@media (max-width: 900px) {
    .footer-left {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    
    .footer-contact-info {
        width: 100%;
        justify-content: center;
    }
    
    .footer-right {
        gap: 20px;
        align-items: center;
        margin-top: 0;
    }
    
    .footer-social-section {
        align-items: center;
    }
    
    .footer-social-title {
        text-align: center;
    }
    
    .footer-social-icons {
        justify-content: center;
    }
    
    .footer-links-section {
        justify-content: center;
    }
}

@media (max-width: 850px) {
    .footer-contact-item {
        min-width: 130px;
        min-height: 100px;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding: 15px 0 0;
    }
    
    .footer-content {
        padding: 15px 0 10px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-contact-info {
        flex-wrap: wrap;
        justify-content: center;
        max-width: 700px;
        margin: 0 auto;
    }
    
    .footer-contact-item {
        min-width: 200px;
        flex: 0 0 calc(33.333% - 12px);
        min-height: 110px;
    }
    
    .footer-right {
        align-items: center;
        gap: 20px;
    }
    
    .footer-links-section {
        justify-content: center !important;
    }
    
    .footer-main-link {
        padding: 10px 18px;
        white-space: normal;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 46px;
        height: 46px;
    }
}

@media (max-width: 700px) {
    .footer-contact-item {
        min-width: 180px;
        flex: 0 0 calc(50% - 12px);
        min-height: 105px;
    }
}

@media (max-width: 600px) {
    .footer-contact-info {
        gap: 10px;
    }
    
    .footer-contact-item {
        min-height: 100px;
        padding: 10px 8px;
    }
    
    .footer-logo-fallback {
        flex-direction: row;
        gap: 12px;
    }
    
    .footer-logo-text {
        text-align: left;
    }
    
    .footer-social-link {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .contact-value {
        font-size: 12px;
    }
    
    .contact-detail {
        font-size: 11px;
    }
}

@media (max-width: 500px) {
    .footer-contact-item {
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 280px;
        margin: 0 auto;
        min-height: auto;
        padding: 12px 15px;
        flex-direction: row;
        align-items: flex-start;
    }
    
    .footer-contact-icon {
        margin-bottom: 0;
        margin-right: 12px;
    }
    
    .footer-contact-text {
        align-items: flex-start;
    }
    
    .footer-contact-info {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .footer-right {
        width: 100%;
    }
    
    .footer-social-title {
        font-size: 0.95rem;
    }
    
    .footer-main-link {
        width: 100%;
        justify-content: center;
        padding: 10px 15px;
        font-size: 13px;
        white-space: normal;
        flex-wrap: wrap;
    }
    
    .back-to-top span {
        display: none;
    }
    
    .back-to-top {
        width: 44px;
        height: 44px;
    }
}

/* Īpaši maziem ekrāniem */
@media (max-width: 400px) {
    .footer-contact-item {
        padding: 10px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-contact-icon {
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .footer-contact-text {
        align-items: center;
    }
    
    .footer-logo-text h3 {
        font-size: 1rem;
    }
    
    
}