
/* Greencells Development Group - Responsive IT Documentation Styles */

/* CSS Variables for Green Theme */
:root {
    --primary-green: #2E7D32;
    --light-green: #4CAF50;
    --dark-green: #1B5E20;
    --accent-green: #66BB6A;
    --background-light: #F1F8E9;
    --background-white: #FFFFFF;
    --text-dark: #212121;
    --text-gray: #757575;
    --text-light: #FFFFFF;
    --border-color: #E8F5E8;
    --shadow-color: rgba(46, 125, 50, 0.1);
    --warning-red: #D32F2F;
    --warning-red-bg: #FFEBEE;
    --warning-orange: #FF9800;
    --warning-orange-bg: #FFF8E1;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    font-size: 16px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: var(--background-white);
    padding: 2rem 0;
    box-shadow: 0 2px 10px var(--shadow-color);
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

.logo-container {
    text-align: center;
}

.logo {
    height: 80px;
    width: auto;
    margin-bottom: 1rem;
}

.header h1 {
    color: var(--primary-green);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-gray);
    font-size: 1.2rem;
    font-weight: 300;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-bottom: 2rem;
}

/* Deadline Notice */
.deadline-notice {
    background: var(--warning-orange-bg);
    border: 2px solid var(--warning-orange);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 3rem;
    display: flex;
    gap: 1.5rem;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.notice-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.notice-content h2 {
    color: var(--warning-orange);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.notice-section {
    margin-bottom: 1.5rem;
}

.notice-section h3 {
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.notice-section p {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* Language Selection */
.language-selection {
    text-align: center;
    margin-bottom: 3rem;
}

.language-selection h2 {
    color: var(--primary-green);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.language-card {
    background: var(--background-white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--shadow-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.language-card:hover {
    border-color: var(--light-green);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.language-flag {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.language-card h3 {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.language-card p {
    color: var(--text-gray);
    font-size: 1rem;
}

/* OTP Section */
.otp-section {
    text-align: center;
    margin-bottom: 3rem;
}

.otp-card {
    background: var(--background-white);
    border: 2px solid var(--primary-green);
    border-radius: var(--border-radius);
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.otp-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.otp-card h2 {
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.otp-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.otp-button {
    background: var(--primary-green);
    color: var(--text-light);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.otp-button:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
}

/* Getting Started */
.getting-started {
    text-align: center;
    margin-bottom: 3rem;
}

.getting-started h2 {
    color: var(--primary-green);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.guide-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.guide-card {
    background: var(--background-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 4px 15px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.guide-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.guide-card h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.guide-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* Navigation */
.nav {
    background: var(--background-white);
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px var(--shadow-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-dark);
}

.nav-logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--primary-green);
    color: var(--text-light);
}

.language-toggle {
    display: flex;
    gap: 0.5rem;
    background: var(--background-light);
    padding: 0.5rem;
    border-radius: var(--border-radius);
}

.language-toggle a {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--text-dark);
    border-radius: calc(var(--border-radius) - 2px);
    transition: var(--transition);
}

.language-toggle a.active {
    background: var(--primary-green);
    color: var(--text-light);
}

/* Device Grid */
.device-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.device-card {
    background: var(--background-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 4px 15px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.device-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.device-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.device-card h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.3rem;
}

.device-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.device-links a {
    color: var(--primary-green);
    text-decoration: none;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-align: center;
}

.device-links a:hover {
    background: var(--primary-green);
    color: var(--text-light);
    border-color: var(--primary-green);
}

/* Content Sections */
.content-section {
    background: var(--background-white);
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.content-section h1,
.content-section h2 {
    color: var(--primary-green);
    margin-bottom: 1.5rem;
}

.content-section h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.content-section h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
}

.content-section h3 {
    color: var(--dark-green);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.3rem;
}

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-section ul,
.content-section ol {
    margin: 1rem 0 1rem 2rem;
    line-height: 1.8;
}

.content-section li {
    margin-bottom: 0.5rem;
}

/* Warning Boxes */
.warning-box {
    background: var(--warning-red-bg);
    border: 2px solid var(--warning-red);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
    position: relative;
}

.warning-box::before {
    content: "⚠️";
    font-size: 1.5rem;
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.warning-box h3,
.warning-box h4 {
    color: var(--warning-red);
    margin-left: 2.5rem;
    margin-bottom: 1rem;
}

.warning-box p,
.warning-box ul,
.warning-box ol {
    margin-left: 2.5rem;
}

.warning-box strong {
    color: var(--warning-red);
}

/* Code and Pre-formatted Text */
.code-block {
    background: #f5f5f5;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
}

/* Buttons */
.btn {
    background: var(--primary-green);
    color: var(--text-light);
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--background-white);
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
    background: var(--primary-green);
    color: var(--text-light);
}

/* Back Button */
.back-button {
    margin-bottom: 2rem;
    display: inline-block;
}

/* Footer */
.footer {
    background: var(--primary-green);
    color: var(--text-light);
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
    border-radius: var(--border-radius);
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer a {
    color: var(--text-light);
    text-decoration: underline;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .deadline-notice {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .notice-icon {
        font-size: 2rem;
    }
    
    .language-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .guide-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .device-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .nav-container {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .content-section {
        padding: 2rem 1.5rem;
    }
    
    .content-section h1 {
        font-size: 2rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .warning-box {
        padding: 1rem;
    }
    
    .warning-box::before {
        position: static;
        display: block;
        margin-bottom: 0.5rem;
    }
    
    .warning-box h3,
    .warning-box h4,
    .warning-box p,
    .warning-box ul,
    .warning-box ol {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .language-card,
    .guide-card,
    .device-card {
        padding: 1.5rem;
    }
    
    .otp-card {
        padding: 1.5rem;
    }
    
    .logo {
        height: 60px;
    }
    
    .nav-logo img {
        height: 30px;
    }
}

/* Print Styles */
@media print {
    .nav,
    .footer,
    .back-button {
        display: none;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .content-section {
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .warning-box {
        border: 2px solid #000;
        background: #f9f9f9;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --shadow-color: rgba(0, 0, 0, 0.5);
        --border-color: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
