/* ============================================
   COMPONENTS.CSS - Переиспользуемые компоненты
   ============================================ */

/* ===== BUTTONS ===== */
.btn-primary, 
.btn-secondary {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

/* Primary Button - Light Theme */
.btn-primary {
    background: var(--accent-color);
    color: #FFFFFF;
    border: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

:not([data-theme="dark"]) .btn-primary {
    background: #228B22;
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

:not([data-theme="dark"]) .btn-primary:hover {
    background: #196b19;
    color: #FFFFFF;
}

/* Primary Button - Dark Theme */
[data-theme="dark"] .btn-primary {
    background: #FFD700;
    color: #FFFFFF;
}

[data-theme="dark"] .btn-primary:hover {
    background: #e6c200;
    color: #FFFFFF;
}

/* Secondary Button */
.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.btn-secondary:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

/* ===== CARDS ===== */
.link-card,
.social-card,
.news-card,
.collaboration-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.link-card:hover,
.social-card:hover,
.news-card:hover,
.collaboration-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-large);
    border-color: var(--accent-color);
}

/* ===== IMAGE CONTAINERS ===== */
.image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-large);
    width: 100%;
}

.hero-image {
    width: 100%;
    max-width: 100%;
}

.hero-photo {
    display: block;
    width: 100%;
    height: 600px;
    object-fit: cover;
    object-position: center bottom;
    transition: transform 0.3s ease;
    border-radius: 20px;
}

/* Mobile: Move image content down to show face fully */
@media (max-width: 768px) {
    .hero-photo {
        object-position: center 80% !important;
    }
}

.about-image .hero-photo {
    height: 400px !important;  /* Базовый размер для мобильных/планшетов */
    object-position: center 30%;
    border-radius: 20px !important;
}

/* About page hero section */
.about-hero {
    padding: 8rem 0 0 0 !important;
}

.about-hero .container {
    padding-right: 0;
    margin-right: 0;
    max-width: 100%;
}

.about-intro {
    padding-left: 2rem;
    padding-right: 2rem;
}

/* grid-template-columns для about-hero-content будет в responsive файлах */

/* About page image container - базовые стили для мобильных/планшетов */
.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px !important;
    height: 400px !important;  /* Базовый размер */
    max-height: 400px !important;
    margin-bottom: 0;
    margin-top: -4rem !important;  /* Поднять картинку выше для мобильных */
    width: 100%;
    margin-right: 0;
    padding-right: 0;
    max-width: 100%;
    padding-bottom: 0;
    align-self: start !important;
}

.about-image picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.about-image picture:has(.light-theme-img) {
    display: block;
}

.about-image picture:has(.dark-theme-img) {
    display: none;
}

[data-theme="dark"] .about-image picture:has(.light-theme-img) {
    display: none;
}

[data-theme="dark"] .about-image picture:has(.dark-theme-img) {
    display: block;
}

.about-image img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    border-radius: 20px !important;
    min-height: 400px !important;
}

/* About page theme-specific images - fallback for browsers without :has() */
.about-image .light-theme-img {
    display: block;
}

.about-image .dark-theme-img {
    display: none;
}

[data-theme="dark"] .about-image .light-theme-img {
    display: none;
}

[data-theme="dark"] .about-image .dark-theme-img {
    display: block;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    opacity: 0;
    transition: none;
    pointer-events: none;
}

.image-container:hover .hero-photo {
    transform: none;
}

.image-container:hover .image-overlay {
    opacity: 0;
}

/* ===== FORMS ===== */
input,
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(34, 139, 34, 0.1);
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

/* ===== QUICK LINKS SECTION ===== */
.quick-links {
    padding: 6rem 0;
    background: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.quick-links .container {
    max-width: 1400px;
    padding: 0 1rem;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-top: 3rem;
    justify-items: stretch;
}

.link-card {
    background: var(--bg-primary);
    padding: 2.25rem 3rem;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.link-card:hover::before {
    left: 100%;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
    border-color: var(--accent-color);
}

.card-icon {
    font-size: 3.4rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.card-icon i {
    transition: color 0.3s ease;
}

.link-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    min-height: 2.1em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-card p {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    min-height: 3.2em;
}

/* ===== SOCIAL INTEGRATION SECTION ===== */
.social-integration {
    padding: 6rem 0;
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.social-integration .container {
    max-width: 1400px;
    padding: 0 1rem;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.social-card {
    background: var(--bg-primary);
    padding: 2.5rem 4rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.social-card:hover::before {
    transform: scaleX(1);
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.social-card.instagram::before {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-card.tiktok::before {
    background: #000000;
}

.social-card.youtube::before {
    background: #FF0000;
}

.social-card.facebook::before {
    background: #1877F2;
}

.social-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.social-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.6rem !important;
    color: var(--text-primary);
    transition: color 0.35s ease-out;
}

.social-card p {
    color: var(--text-secondary);
    font-size: 1rem !important;
    margin-top: 0 !important;
    transition: color 0.35s ease-out;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-tertiary);
    padding: 3rem 0 1.5rem;
    padding-left: 0;
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: visible;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-sticker {
    display: none;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 1.75rem;
    position: relative;
    min-height: 75px;
}

.footer .container {
    padding-left: 0;
    padding-right: 0;
    margin: 0;
    max-width: 100%;
    position: relative;
    width: 100%;
    padding-right: 2rem;
}

.footer-logo {
    position: absolute;
    left: 0;
    top: 90%;
    transform: translateY(-50%);
    padding-left: 5rem;
}

.footer-logo h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-logo p {
    color: var(--text-secondary);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    position: absolute;
    left: 50%;
    top: 70%;
    transform: translate(-50%, -50%);
    justify-content: center;
    width: auto;
    margin: 0;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.25rem;
}

[data-theme="dark"] .footer-links a {
    color: #ffffff;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    flex-shrink: 0;
    position: absolute;
    right: 0;
    top: 70%;
    transform: translateY(-50%);
    padding-right: 8rem;
    align-items: center;
}

