/* ===================================================
   EMMA WEBSITE - GLOBAL STYLES
   Main stylesheet for all pages
   ===================================================
*/

/* ROOT & BODY STYLES */
html {
    overflow-y: scroll;
}

body {
    margin: 0;
    padding: 0;
    color: #1A1A1A;
    background: #f4f4f4;
    font-size: 14px;
    font-family: 'SST', 'Sony SST', 'SonySST', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* LINK STYLES */
a, a:link, a:visited {
    text-decoration: none;
    color: #FF6900;
}

a:hover {
    text-decoration: underline;
    color: #E55A00;
}

/* ===================================================
   HEADER & NAVIGATION
   ===================================================
*/

.header {
    background: #000;
    color: #fff;
    padding: 1rem;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-title {
    color: #fff;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.nav-title:hover {
    color: #FF6900; /* Sony orange on hover */
}

/* Style for direct link nav items */
.nav-link .nav-title {
    color: #fff !important;
    text-decoration: none !important;
}

.nav-link .nav-title:hover {
    color: #FF6900 !important; /* Sony orange on hover */
    text-decoration: none !important;
}

/* Override global link hover for navigation */
.main-nav a:hover {
    text-decoration: none !important;
}

/* Navigation icon styles */
.nav-icon {
    margin-right: 0.5rem;
}

.nav-link-flex {
    display: flex;
    align-items: center;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1A1A1A;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: #fff !important;
    text-decoration: none;
    border-bottom: 1px solid #333;
    transition: background-color 0.3s ease;
}

.dropdown a:last-child {
    border-bottom: none;
    border-radius: 0 0 6px 6px;
}

.dropdown a:first-child {
    border-radius: 6px 6px 0 0;
}

.dropdown a:hover {
    background-color: #FF6900; /* Sony orange background on hover */
    color: #fff !important;
}

.sony-logo {
    max-width: 150px;
}

.product-logo {
    max-width: 50px;
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* ===================================================
   INDEX (HOMEPAGE)
   ===================================================
*/

.emma-homepage {
    background: #f4f4f4;
    padding: 1.5rem;
    margin-bottom: 2.1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.emma-header {
    display: block;
    position: relative;
    z-index: 1;
}

.emma-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.emma-content h1 {
    margin: 0 0 0.5rem 0;
    font-size: 3rem;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'SST', 'Sony SST', 'SonySST', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.emma-content h1 img {
    height: 3rem;
    margin-right: 0.5rem;
}

.emma-content p {
    margin: 0.2rem;
    font-size: 1rem;
}

/* ===================================================
   MAIN CONTAINER & LAYOUT
   ===================================================
*/

.download-button-container {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.25rem;
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 2rem;
    flex: 1;
    align-items: start;
}

.section {
    background: linear-gradient(135deg, #FFFFFF 0%, #FAFAFA 100%);
    padding: 1rem 2rem 2rem 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid rgba(255,105,0,0.08);
    transition: box-shadow 0.3s ease;
}

.section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
    margin-top: 0;
    text-align: center;
    color: #1A1A1A; /* Sony's dark gray */
    letter-spacing: -0.01em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.03);
    position: relative;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 2.5%;
    width: 95%;
    height: 2px;
    background: #FF6900; /* Sony orange accent */
}

.section h2 a {
    font-size: 1rem; /* Slightly bigger than before */
    font-weight: normal;
    vertical-align: baseline; /* Align with text baseline */
    line-height: 1.4; /* Match header line height */
}

#news h2 {
    margin-bottom: 1.5rem;
}

#release-plan h2 {
    margin-bottom: 1.5rem;
}

.section .section-header h2 {
    margin-bottom: 1.5rem;
}

/* ===================================================
   INDEX - NEWS & RELEASE SCHEDULE
   ===================================================
*/

.news-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FEFEFE 100%);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
    border-left: 3px solid #1A1A1A; /* Sony black accent */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12), 0 3px 8px rgba(0,0,0,0.06);
    border-left-color: #FF6900;
}



.news-title {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    color: #1A1A1A;
    line-height: 1.3;
}

.news-time {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.news-content p {
    margin: 0.4rem 0;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

.news-content p:last-child {
    margin-bottom: 0;
}

.release-schedule {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.release-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FEFEFE 100%);
    border-radius: 12px;
    padding: 0.6rem 1.25rem;
    box-shadow: 0 3px 12px rgba(255,105,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
    border-left: 3px solid #FF6900;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.release-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,105,0,0.15), 0 3px 8px rgba(0,0,0,0.06);
    border-left-color: #1A1A1A;
}

.release-date {
    font-weight: 600;
    font-size: 0.85rem;
    color: #1A1A1A;
    flex-grow: 1;
}

.release-time {
    font-size: 0.8rem;
    color: #666;
    text-align: right;
    flex-shrink: 0;
    margin-left: 1.5rem;
}

#main-content {
    grid-column: 1;
}

#release-plan {
    grid-column: 2;
    min-width: 0;
}

/* ===================================================
   BUTTONS
   ===================================================
*/

.download-button {
    display: inline-block;
    background: linear-gradient(135deg, #FF6900 0%, #E55A00 100%); /* Sony orange gradient */
    color: white !important;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: normal;
    font-size: 0.9rem;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 12px rgba(255, 105, 0, 0.3); /* Orange shadow */
}

.download-button:hover {
    background: linear-gradient(135deg, #E55A00 0%, #CC5000 100%); /* Darker orange gradient */
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 105, 0, 0.4); /* Enhanced orange shadow */
}

.create-user-button {
    display: inline-block;
    background: linear-gradient(135deg, #1A1A1A 0%, #2A2A2A 100%); /* Sony black gradient */
    color: white !important;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: normal;
    font-size: 0.9rem;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 12px rgba(26, 26, 26, 0.3); /* Dark shadow */
}

.create-user-button:hover {
    background: linear-gradient(135deg, #2A2A2A 0%, #3A3A3A 100%); /* Lighter black gradient */
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26, 26, 26, 0.4); /* Enhanced dark shadow */
}

/* Button icon styles */
.button-icon {
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* ===================================================
   ERROR
   ===================================================
*/

.error-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #f4f4f4;
}

.error-content {
    text-align: center;
    background: linear-gradient(135deg, #FFFFFF 0%, #FAFAFA 100%);
    padding: 3rem 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid rgba(255,105,0,0.08);
    max-width: 500px;
    width: 100%;
}

.error-icon {
    margin-bottom: 1.5rem;
    display: inline-block;
}

.error-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.error-message {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-home-button {
    display: inline-block;
    background: linear-gradient(135deg, #FF6900 0%, #E55A00 100%);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 12px rgba(255, 105, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-home-button:hover {
    background: linear-gradient(135deg, #E55A00 0%, #CC5000 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 0, 0.4);
}

.error-support-button {
    display: inline-block;
    background: linear-gradient(135deg, #1A1A1A 0%, #2A2A2A 100%);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 12px rgba(26, 26, 26, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-support-button:hover {
    background: linear-gradient(135deg, #2A2A2A 0%, #3A3A3A 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 26, 26, 0.4);
}

@media (max-width: 768px) {
    .error-container {
        padding: 1rem;
        min-height: 50vh;
    }
    
    .error-content {
        padding: 2rem 1.5rem;
    }
    
    .error-title {
        font-size: 1.5rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .error-home-button,
    .error-support-button {
        width: 100%;
        justify-content: center;
    }
}

/* ===================================================
   RESPONSIVE - GENERAL
   ===================================================
*/

@media (max-width: 768px) {
    .header {
        text-align: center;
    }
    .logo-container {
        justify-content: center;
    }
    .emma-content h1 {
        flex-direction: column;
        text-align: center;
    }
    .emma-content h1 img {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    .container {
        padding: 0.25rem;
        grid-template-columns: 1fr;
    }
    #main-content {
        grid-column: 1;
    }
    #release-plan {
        grid-column: 1;
        margin-top: 1.5rem;
    }
    .section {
        padding: 0.75rem;
    }
}

/* ===================================================
   PREREQUISITES
   ===================================================
*/

.prerequisites-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.requirement-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FEFEFE 100%);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
    border-left: 3px solid #1A1A1A;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.requirement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12), 0 3px 8px rgba(0,0,0,0.06);
    border-left-color: #FF6900;
}

.requirement-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.requirement-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #FF6900 0%, #E55A00 100%);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(255, 105, 0, 0.25);
}

.requirement-header h3 {
    color: #1A1A1A;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.requirement-content p {
    color: #4A4A4A;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.requirement-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirement-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #E5E5E5;
    color: #4A4A4A;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.requirement-list li strong {
    white-space: nowrap;
}

.requirement-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.requirement-list li::before {
    content: "✓";
    color: #FF6900;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 0;
}

.note-box {
    background: linear-gradient(135deg, #FFF8F0 0%, #FFFBF5 100%);
    border: 2px solid #FFE5CC;
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1rem;
}

.note-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #FF6900;
    font-weight: 600;
}

.note-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.note-box li {
    padding: 0.5rem 0;
    color: #4A4A4A;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.note-box li::before {
    content: "•";
    color: #FF6900;
    font-weight: bold;
    margin-top: 0.1rem;
}

/* Important Note - In-card style */
.important-note {
    margin-top: 1.25rem;
    padding-left: 0;
    position: relative;
    background: #F9F9F9;
    border-radius: 8px;
    padding: 1rem 1rem 1rem 1.25rem;
    border-left: 3px solid #FF6900;
}

.important-note-content strong {
    display: block;
    color: #1A1A1A;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.important-note ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.important-note li {
    padding: 0.4rem 0;
    color: #4A4A4A;
    font-size: 0.9rem;
    line-height: 1.5;
}

.important-note li::before {
    content: "→";
    color: #FF6900;
    font-weight: bold;
    margin-right: 0.5rem;
}

.network-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.network-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #F8F9FA;
    border-radius: 8px;
    border-left: 3px solid #FF6900;
}

.port-badge {
    background: linear-gradient(135deg, #FF6900 0%, #E55A00 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(255, 105, 0, 0.3);
}

.network-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.crl-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-left: 1rem;
}

/* Responsive Adjustments for Prerequisites */
@media (max-width: 768px) {
    .requirement-card {
        padding: 1.5rem;
    }
    
    .requirement-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .network-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* ===================================================
   NEWS_ARCHIVE
   ===================================================
*/

.news-archive-container {
    display: flex;
    justify-content: center;
    flex: 1;
}

.news-content {
    max-width: 800px;
    width: 100%;
}

.historical-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #FF6900 0%, #E55A00 100%);
    color: white;
    padding: 20px 30px;
    margin: 1rem 0;
    border-radius: 12px;
    cursor: pointer;
    border: none;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 105, 0, 0.3);
    transition: all 0.3s ease;
    user-select: none;
}

.historical-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 0, 0.4);
}

.historical-toggle-btn.expanded {
    background: linear-gradient(135deg, #1A1A1A 0%, #333 100%);
}

.historical-archive.show {
    display: block;
}

.toggle-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.toggle-icon {
    font-size: 24px;
}

.toggle-text-main {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.toggle-text-sub {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 400;
}

.expand-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.historical-archive {
    display: none;
    margin-top: 1rem;
}

/* ===================================================
   SOFTWARE_UPDATE_DRIVERS
   ===================================================
*/

.drivers-container {
    display: flex;
    justify-content: center;
    flex: 1;
}

.drivers-content {
    max-width: 800px;
    width: 100%;
}

.instructions-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FEFEFE 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
    border-left: 3px solid #1A1A1A;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.instructions-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12), 0 3px 8px rgba(0,0,0,0.06);
    border-left-color: #FF6900;
}

.instructions-card h2 {
    color: #1A1A1A;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.instruction-list {
    margin: 0;
    padding-left: 1.5rem;
    line-height: 1.8;
}

.instruction-list li {
    margin-bottom: 0.5rem;
    color: #333;
}

.instruction-list li:last-child {
    margin-bottom: 0;
}

.driver-link {
    color: #FF6900;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.driver-link:hover {
    color: #E55A00;
    text-decoration: underline;
}

/* ===================================================
   SUPPORT
   ===================================================
*/

.support-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.support-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FEFEFE 100%);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
    border-left: 3px solid #1A1A1A;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.support-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12), 0 3px 8px rgba(0,0,0,0.06);
    border-left-color: #FF6900;
}

.support-card h3 {
    color: #1A1A1A;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
}

.support-card p {
    color: #4A4A4A;
    line-height: 1.6;
    margin: 0 0 0.75rem 0;
}

.support-card p:last-child {
    margin-bottom: 0;
}

.support-card ul {
    margin: 0;
    padding-left: 1.5rem;
    line-height: 1.8;
}

.support-card ul li {
    margin-bottom: 0.5rem;
    color: #333;
}

.support-card ul li:last-child {
    margin-bottom: 0;
}

.important-box {
    background: linear-gradient(135deg, #FFF5F0 0%, #FFEDE0 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(255, 105, 0, 0.15), 0 1px 4px rgba(255, 105, 0, 0.08);
    border-left: 3px solid #FF6900;
}

.important-box h3 {
    color: #FF6900;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
}

.important-box p {
    color: #4A4A4A;
    line-height: 1.6;
    margin: 0 0 0.75rem 0;
}

.important-box ul {
    margin: 0;
    padding-left: 1.5rem;
    line-height: 1.8;
}

.important-box ul li {
    margin-bottom: 0.5rem;
    color: #333;
}

.important-box ul li:last-child {
    margin-bottom: 0;
}

/* ===================================================
   FOOTER
   ===================================================
*/

footer {
    background: #000;
    color: #ccc;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}
