/* GSFN Shared Styles - Design System */

/* ===== CSS VARIABLES ===== */
:root {
    --deep-green: #013a20;
    --lime-accent: #ccff33;
    --cream-bg: #f2f7ec;
    --soft-white: #ffffff;
    --lime-600: #84cc16;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream-bg); }
::-webkit-scrollbar-thumb { background: var(--deep-green); border-radius: 10px; }

/* ===== SMOOTH REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal.delay-100 { transition-delay: 0.1s; }
.reveal.delay-200 { transition-delay: 0.2s; }
.reveal.delay-300 { transition-delay: 0.3s; }
.reveal.delay-400 { transition-delay: 0.4s; }
.reveal.delay-500 { transition-delay: 0.5s; }

/* ===== GLASSMORPHISM UTILITIES ===== */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-dark {
    background: rgba(1, 58, 32, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ===== TEXT EFFECTS ===== */
.text-outline {
    -webkit-text-stroke: 1px rgba(1, 58, 32, 0.2);
    color: transparent;
}

.text-gradient {
    background: linear-gradient(135deg, var(--deep-green), var(--lime-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== BUTTON STYLES ===== */
.btn-primary {
    background-color: var(--deep-green);
    color: white;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px -10px rgba(1, 58, 32, 0.3);
}

.btn-primary:hover {
    background-color: var(--lime-accent);
    color: var(--deep-green);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--deep-green);
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    border: 2px solid var(--deep-green);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--deep-green);
    color: white;
}

.btn-lime {
    background-color: var(--lime-accent);
    color: var(--deep-green);
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-lime:hover {
    background-color: white;
    transform: scale(1.05);
}

/* ===== CARD STYLES ===== */
.card-tactile {
    box-shadow: 0 20px 40px -10px rgba(1, 58, 32, 0.15), 0 0 0 1px rgba(1, 58, 32, 0.05);
    transition: all 0.5s ease;
}

.card-tactile:hover {
    box-shadow: 0 25px 50px -10px rgba(1, 58, 32, 0.2), 0 0 0 1px rgba(1, 58, 32, 0.08);
    transform: translateY(-4px);
}

/* ===== FORM STYLES ===== */
.form-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    border: 2px solid rgba(1, 58, 32, 0.1);
    background: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--lime-accent);
    box-shadow: 0 0 0 4px rgba(204, 255, 51, 0.2);
}

.form-input::placeholder {
    color: rgba(1, 58, 32, 0.4);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--deep-green);
}

/* ===== PAGE HEADER STYLES ===== */
.page-header {
    padding-top: 8rem;
    padding-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40rem;
    height: 40rem;
    background: rgba(204, 255, 51, 0.2);
    border-radius: 50%;
    filter: blur(120px);
    transform: translate(30%, -50%);
    z-index: 0;
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem;
    border-radius: 9999px;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
}

.lang-btn:hover {
    color: white;
}

.lang-btn.active {
    background: white;
    color: var(--deep-green);
}

/* ===== RTL SUPPORT ===== */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .ml-auto {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .mr-auto {
    margin-right: 0;
    margin-left: auto;
}

[dir="rtl"] .text-left {
    text-align: right;
}

[dir="rtl"] .text-right {
    text-align: left;
}

/* RTL flexbox adjustments */
[dir="rtl"] .flex-row {
    flex-direction: row-reverse;
}

[dir="rtl"] .space-x-4 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 1;
}

/* RTL navigation */
[dir="rtl"] .nav-link {
    margin-left: 0;
    margin-right: 0.5rem;
}

/* RTL form group icon positions */
[dir="rtl"] .form-icon-left {
    left: auto;
    right: 1rem;
}

[dir="rtl"] .form-icon-right {
    right: auto;
    left: 1rem;
}

/* RTL arrow directions */
[dir="rtl"] .arrow-right {
    transform: rotate(180deg);
}

[dir="rtl"] .arrow-left {
    transform: rotate(0deg);
}

/* ===== BLOG CARD STYLES ===== */
.blog-card {
    border-radius: 2rem;
    overflow: hidden;
    transition: all 0.5s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
}

.blog-card-image {
    height: 200px;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.1);
}

/* ===== CATALOG FILTER ===== */
.filter-chip {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    border: 1px solid rgba(1, 58, 32, 0.2);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-chip:hover,
.filter-chip.active {
    background: var(--deep-green);
    color: white;
    border-color: var(--deep-green);
}

/* ===== PRODUCT GALLERY ===== */
.product-gallery-main {
    border-radius: 2.5rem;
    overflow: hidden;
}

.product-gallery-thumb {
    width: 80px;
    height: 80px;
    border-radius: 1rem;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-gallery-thumb.active,
.product-gallery-thumb:hover {
    border-color: var(--lime-accent);
}

/* ===== TIMELINE STYLES ===== */
.timeline {
    position: relative;
    padding-left: 2rem;
}

[dir="rtl"] .timeline {
    padding-left: 0;
    padding-right: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--lime-accent), var(--deep-green));
}

[dir="rtl"] .timeline::before {
    left: auto;
    right: 0;
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 0;
    width: 1rem;
    height: 1rem;
    background: var(--lime-accent);
    border-radius: 50%;
    transform: translateX(-50%);
}

[dir="rtl"] .timeline-dot {
    left: auto;
    right: -2rem;
    transform: translateX(50%);
}

/* ===== TEAM CARD ===== */
.team-card {
    text-align: center;
    padding: 2rem;
    border-radius: 2rem;
    transition: all 0.5s ease;
}

.team-card:hover {
    background: white;
    box-shadow: 0 20px 40px -10px rgba(1, 58, 32, 0.1);
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 4px solid var(--lime-accent);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(1, 58, 32, 0.6);
}

.breadcrumb a:hover {
    color: var(--deep-green);
}

.breadcrumb-separator {
    color: rgba(1, 58, 32, 0.3);
}

[dir="rtl"] .breadcrumb {
    flex-direction: row-reverse;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 768px) {
    .page-header {
        padding-top: 6rem;
        padding-bottom: 3rem;
    }
    
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}
