/**
 * Component Stylesheet (fmsph1_063321.css)
 *
 * Contains styles for reusable components like buttons, cards,
 * header, footer, and the hero block.
 *
 * Sitename: fmsph
 * Seed: 063321
 */

/* 1. Buttons
-------------------------------------------------- */
.fmsph-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--fmsph-font-body);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--fmsph-border-radius);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--fmsph-transition-speed) ease;
    white-space: nowrap;
}

.fmsph-btn-primary {
    background-color: var(--fmsph-color-primary);
    color: #fff;
    border-color: var(--fmsph-color-primary);
}
.fmsph-btn-primary:hover {
    background-color: var(--fmsph-color-primary-hover);
    border-color: var(--fmsph-color-primary-hover);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.fmsph-btn-secondary {
    background-color: transparent;
    color: var(--fmsph-color-accent-neon);
    border-color: var(--fmsph-color-border);
}
.fmsph-btn-secondary:hover {
    background-color: var(--fmsph-color-primary);
    border-color: var(--fmsph-color-primary);
    color: #fff;
    text-decoration: none;
}

.fmsph-btn-tertiary {
    background-color: var(--fmsph-color-bg-secondary);
    color: var(--fmsph-color-text-main);
    border-color: var(--fmsph-color-border);
}

.fmsph-btn-tertiary:hover {
    background-color: var(--fmsph-color-border);
    color: var(--fmsph-color-text-headings);
    text-decoration: none;
}

/* 2. Header & Navigation
-------------------------------------------------- */
.fmsph-header.sticky-top {
    border-bottom: 1px solid var(--fmsph-color-border);
    background-color: rgba(13, 12, 29, 0.85); /* Dark bg with transparency */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.fmsph-navbar-brand {
    font-family: var(--fmsph-font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--fmsph-color-text-headings) !important;
}

.fmsph-navbar .nav-link {
    font-weight: 500;
    color: var(--fmsph-color-text-main);
    padding: 0.5rem 1rem;
    position: relative;
}

.fmsph-navbar .nav-link:hover,
.fmsph-navbar .nav-link.active {
    color: var(--fmsph-color-accent-neon);
}

.fmsph-navbar .dropdown-menu {
    background-color: var(--fmsph-color-bg-secondary);
    border: 1px solid var(--fmsph-color-border);
    border-radius: var(--fmsph-border-radius);
}

.fmsph-navbar .dropdown-item {
    color: var(--fmsph-color-text-main);
    transition: all var(--fmsph-transition-speed) ease;
}

.fmsph-navbar .dropdown-item:hover {
    background-color: var(--fmsph-color-primary);
    color: #fff;
}


/* 3. Footer
-------------------------------------------------- */
.fmsph-footer {
    background-color: var(--fmsph-color-bg-secondary);
    padding: 60px 0 20px 0;
    border-top: 1px solid var(--fmsph-color-border);
    color: var(--fmsph-color-text-main);
}

.fmsph-footer-title {
    font-family: var(--fmsph-font-heading);
    font-size: 2rem;
    color: var(--fmsph-color-text-headings);
}

.fmsph-footer-heading {
    font-family: var(--fmsph-font-body);
    font-weight: 700;
    font-size: 1rem;
    color: var(--fmsph-color-text-headings);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.fmsph-footer-list {
    list-style: none;
    padding: 0;
}

.fmsph-footer-list li {
    margin-bottom: 0.5rem;
}

.fmsph-footer-list a {
    color: var(--fmsph-color-text-main);
    text-decoration: none;
}

.fmsph-footer-list a:hover {
    color: var(--fmsph-color-accent-neon);
    text-decoration: underline;
}

.fmsph-footer-bottom {
    border-top: 1px solid var(--fmsph-color-border);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}


/* 4. Hero Section
-------------------------------------------------- */
.fmsph-hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 100px 0;
}

.fmsph-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(13, 12, 29, 0.9) 0%, rgba(13, 12, 29, 0.5) 100%);
}

.fmsph-hero-content {
    position: relative;
    z-index: 2;
}

.fmsph-hero-tagline {
    color: var(--fmsph-color-accent-neon);
    font-weight: 700;
}

.fmsph-hero-title {
    font-size: 4.5rem;
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.fmsph-hero-subtitle {
    font-size: 1.3rem;
    color: var(--fmsph-color-text-main);
}
.fmsph-hero-subtitle strong {
    color: var(--fmsph-color-text-headings);
}

.fmsph-hero-disclaimer {
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .fmsph-hero-title {
        font-size: 3rem;
    }
}


/* 5. Cards (Game, Blog, etc.)
-------------------------------------------------- */
.fmsph-game-card {
    background-color: var(--fmsph-color-bg-secondary);
    border: 1px solid var(--fmsph-color-border);
    border-radius: var(--fmsph-border-radius);
    overflow: hidden;
    transition: all var(--fmsph-transition-speed) ease;
    display: flex;
    flex-direction: column;
}
.fmsph-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border-color: var(--fmsph-color-primary);
}
.fmsph-game-card-img-container {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.fmsph-game-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fmsph-game-card-body {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.fmsph-game-card-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.fmsph-step-card {
    background-color: var(--fmsph-color-bg-secondary);
    padding: 2rem;
    border-radius: var(--fmsph-border-radius);
    text-align: center;
    border: 1px solid var(--fmsph-color-border);
    height: 100%;
}
.fmsph-step-icon {
    color: var(--fmsph-color-primary);
    margin-bottom: 1rem;
}
.fmsph-step-title {
    color: var(--fmsph-color-text-headings);
}

.fmsph-advantage-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background-color: var(--fmsph-color-bg-secondary);
    padding: 1.5rem;
    border-radius: var(--fmsph-border-radius);
    border: 1px solid var(--fmsph-color-border);
    height: 100%;
}
.fmsph-advantage-icon {
    color: var(--fmsph-color-primary);
    flex-shrink: 0;
}

.fmsph-blog-post-card {
     background-color: var(--fmsph-color-bg-secondary);
     border: 1px solid var(--fmsph-color-border);
     border-radius: var(--fmsph-border-radius);
     padding: 1.5rem;
     height: 100%;
}
.fmsph-blog-post-title a {
    color: var(--fmsph-color-text-headings);
    text-decoration: none;
}
.fmsph-blog-post-title a:hover {
    color: var(--fmsph-color-primary);
}
.fmsph-link-arrow {
    font-weight: 700;
    text-decoration: none;
}
/* Добавьте это в конец файла fmsph1_063321.css */

.fmsph-game-area {
    /* Убираем лишние боковые отступы на широком экране */
    padding-left: 0;
    padding-right: 0;
}

.fmsph-game-iframe {
    width: 100%;
    /* Задаем соотношение сторон 16:9 для iframe */
    aspect-ratio: 16 / 9;
    /* Можно использовать и высоту, зависимую от экрана, например: */
    /* height: 85vh; */
}