@import 'variables.css';

/* =========================================
   Reset & Base
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   Utilities
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    /* Padding is handled in responsive files */
}

.text-accent {
    color: var(--color-accent-main);
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-bg-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-main);
}

/* Typography Defaults */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    font-weight: 700;
}

.section-title {
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-desc {
    color: var(--color-text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
}

/* =========================================
   Header (Shared)
   ========================================= */
.disclaimer-bar {
    background-color: var(--color-accent-sub);
    color: white;
    font-size: 0.85rem;
    padding: 8px 0;
    text-align: center;
    font-weight: 500;
}

.main-header {
    background-color: rgba(5, 5, 5, 0.9);
    /* Darker for legibility */
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
}

.header-inner {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-menu a {
    color: var(--color-text-secondary);
    font-weight: 500;
}

/* Buttons */
.btn {
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-block;
    border: none;
}

.btn-primary {
    background-color: var(--color-accent-main);
    color: #000;
}

.btn-block {
    display: block;
    width: 100%;
}

/* =========================================
   Hero Section (Shared)
   ========================================= */
.hero-section {
    height: 80vh;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), #050505), url('../../images/hero_bg_real_1765352071867.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    color: var(--color-text-primary);
    margin-bottom: 2.5rem;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

/* =========================================
   Vehicle Grid (Shared)
   ========================================= */
.showcase-section {
    padding: 100px 0;
}

.vehicle-grid {
    display: grid;
    gap: 30px;
}

.vehicle-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
    text-decoration: none;
    /* Make card clickable link style */
    display: block;
    color: inherit;
}

.card-image {
    height: 250px;
    background-color: #222;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-info {
    padding: 25px;
}

.card-model {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.card-slogan {
    font-size: 0.9rem;
    color: var(--color-accent-main);
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 600;
}

.card-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 3px;
}

.stat-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.card-price {
    font-size: 1.1rem;
    font-weight: 700;
    text-align: right;
    margin-top: 10px;
}

/* =========================================
   Community (Shared)
   ========================================= */
.community-layout {
    display: grid;
    /* grid-template-columns handled in PC/Mobile css */
    align-items: start;
}

.comment-form-container {
    background-color: var(--color-bg-card);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.form-title,
.list-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-accent-sub);
    padding-bottom: 10px;
    display: inline-block;
}

.comment-form .form-group {
    margin-bottom: 15px;
}

.comment-form .form-group-row {
    display: grid;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-form input,
.comment-form select,
.comment-form textarea {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: var(--color-text-primary);
    padding: 12px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.comment-form input:focus,
.comment-form select:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-accent-main);
    background-color: rgba(0, 173, 181, 0.05);
}

.form-note {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 10px;
    text-align: center;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    padding-right: 10px;
}

.comment-item {
    background-color: var(--color-bg-glass);
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid var(--color-text-muted);
    transition: var(--transition-smooth);
}

.cmt-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.cmt-author {
    font-weight: 700;
    color: var(--color-text-primary);
}

.cmt-date {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.cmt-model {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-accent-main);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 10px;
}

.cmt-content {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    white-space: pre-line;
}

/* =========================================
   Detail Page specific
   ========================================= */
.detail-header {
    height: 400px;
    position: relative;
    background-size: cover;
    background-position: center;
}

.detail-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--color-bg-primary), transparent);
}

.detail-content {
    padding: 60px 0;
}

/* Footer (Shared) */
.main-footer {
    background-color: #000;
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-light);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    /* Safety wrap */
}

/* More footer styling inherited but layout may change */
 / *   D e t a i l   P a g e   T a b s   &   S t y l i n g   * / 
 
 . d e t a i l - h e r o   { 
         h e i g h t :   4 0 0 p x ; 
         b a c k g r o u n d - s i z e :   c o v e r ; 
         b a c k g r o u n d - p o s i t i o n :   c e n t e r ; 
         p o s i t i o n :   r e l a t i v e ; 
         d i s p l a y :   f l e x ; 
         a l i g n - i t e m s :   f l e x - e n d ; 
         m a r g i n - b o t t o m :   0 ; 
 } 
 . d e t a i l - h e r o   . o v e r l a y   { 
         p o s i t i o n :   a b s o l u t e ;   t o p : 0 ;   l e f t : 0 ;   r i g h t : 0 ;   b o t t o m : 0 ; 
         b a c k g r o u n d :   l i n e a r - g r a d i e n t ( t o   b o t t o m ,   r g b a ( 0 , 0 , 0 , 0 . 2 ) ,   # 0 0 0 ) ; 
 } 
 . h e r o - c o n t e n t   { 
         p o s i t i o n :   r e l a t i v e ; 
         z - i n d e x :   2 ; 
         p a d d i n g - b o t t o m :   4 0 p x ; 
         c o l o r :   w h i t e ; 
 } 
 . h e r o - s u b t i t l e   { 
         d i s p l a y :   i n l i n e - b l o c k ; 
         b a c k g r o u n d :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 1 ) ; 
         p a d d i n g :   5 p x   1 2 p x ; 
         b o r d e r - r a d i u s :   2 0 p x ; 
         f o n t - s i z e :   0 . 9 e m ; 
         m a r g i n - b o t t o m :   1 0 p x ; 
         b a c k d r o p - f i l t e r :   b l u r ( 5 p x ) ; 
 } 
 . h e r o - t i t l e   { 
         f o n t - s i z e :   3 r e m ; 
         f o n t - w e i g h t :   7 0 0 ; 
         m a r g i n :   0 ; 
         l i n e - h e i g h t :   1 . 1 ; 
 } 
 . h e r o - s l o g a n   { 
         f o n t - s i z e :   1 . 2 r e m ; 
         o p a c i t y :   0 . 8 ; 
         m a r g i n :   1 0 p x   0 ; 
 } 
 . h e r o - p r i c e   { 
         f o n t - s i z e :   1 . 5 r e m ; 
         f o n t - w e i g h t :   7 0 0 ; 
         c o l o r :   v a r ( - - a c c e n t - c o l o r ,   # f f f ) ; 
         m a r g i n - t o p :   1 5 p x ; 
 } 
 
 / *   T a b s   * / 
 . d e t a i l - t a b s - w r a p p e r   { 
         b a c k g r o u n d :   # 0 0 0 ; 
         b o r d e r - b o t t o m :   1 p x   s o l i d   # 2 2 2 ; 
         p o s i t i o n :   s t i c k y ; 
         t o p :   6 0 p x ;   / *   A d j u s t   b a s e d   o n   h e a d e r   h e i g h t   * / 
         z - i n d e x :   9 0 ; 
 } 
 . d e t a i l - t a b s   { 
         l i s t - s t y l e :   n o n e ; 
         m a r g i n :   0 ;   p a d d i n g :   0 ; 
         d i s p l a y :   f l e x ; 
         g a p :   3 0 p x ; 
         o v e r f l o w - x :   a u t o ; 
 } 
 . d e t a i l - t a b s   l i   { 
         p a d d i n g :   2 0 p x   5 p x ; 
         c o l o r :   # 8 8 8 ; 
         c u r s o r :   p o i n t e r ; 
         f o n t - w e i g h t :   5 0 0 ; 
         p o s i t i o n :   r e l a t i v e ; 
         w h i t e - s p a c e :   n o w r a p ; 
         t r a n s i t i o n :   c o l o r   0 . 3 s ; 
 } 
 . d e t a i l - t a b s   l i : h o v e r ,   . d e t a i l - t a b s   l i . a c t i v e   { 
         c o l o r :   # f f f ; 
 } 
 . d e t a i l - t a b s   l i . a c t i v e : : a f t e r   { 
         c o n t e n t :   ' ' ; 
         p o s i t i o n :   a b s o l u t e ;   b o t t o m :   0 ;   l e f t :   0 ;   w i d t h :   1 0 0 % ; 
         h e i g h t :   3 p x ;   b a c k g r o u n d :   # f f f ; 
 } 
 
 / *   C o n t e n t   * / 
 . d e t a i l - c o n t e n t - a r e a   { 
         p a d d i n g - t o p :   5 0 p x ; 
         p a d d i n g - b o t t o m :   8 0 p x ; 
 } 
 . t a b - c o n t e n t   { 
         d i s p l a y :   n o n e ; 
         o p a c i t y :   0 ; 
         t r a n s f o r m :   t r a n s l a t e Y ( 1 0 p x ) ; 
         t r a n s i t i o n :   a l l   0 . 3 s ; 
 } 
 . t a b - c o n t e n t . a c t i v e   {   d i s p l a y :   b l o c k ;   } 
 . t a b - c o n t e n t . s h o w   {   o p a c i t y :   1 ;   t r a n s f o r m :   t r a n s l a t e Y ( 0 ) ;   } 
 
 . c o n t e n t - b o x   { 
         b a c k g r o u n d :   # 1 1 1 ; 
         b o r d e r :   1 p x   s o l i d   # 2 2 2 ; 
         b o r d e r - r a d i u s :   1 2 p x ; 
         p a d d i n g :   4 0 p x ; 
 } 
 . s e c t i o n - t i t l e   { 
         f o n t - s i z e :   1 . 8 r e m ; 
         m a r g i n - b o t t o m :   3 0 p x ; 
         b o r d e r - l e f t :   4 p x   s o l i d   # f f f ; 
         p a d d i n g - l e f t :   2 0 p x ; 
         c o l o r :   # f f f ; 
 } 
 
 / *   H i g h l i g h t s   G r i d   * / 
 . h i g h l i g h t - g r i d   { 
         d i s p l a y :   g r i d ; 
         g r i d - t e m p l a t e - c o l u m n s :   r e p e a t ( 3 ,   1 f r ) ; 
         g a p :   2 0 p x ; 
         m a r g i n - t o p :   4 0 p x ; 
 } 
 . h i g h l i g h t - i t e m   { 
         b a c k g r o u n d :   # 0 a 0 a 0 a ; 
         p a d d i n g :   2 0 p x ; 
         b o r d e r - r a d i u s :   8 p x ; 
         t e x t - a l i g n :   c e n t e r ; 
         b o r d e r :   1 p x   s o l i d   # 2 2 2 ; 
 } 
 . h i g h l i g h t - i t e m   . l a b e l   {   d i s p l a y :   b l o c k ;   c o l o r :   # 6 6 6 ;   f o n t - s i z e :   0 . 9 e m ;   m a r g i n - b o t t o m :   8 p x ;   } 
 . h i g h l i g h t - i t e m   . v a l u e   {   d i s p l a y :   b l o c k ;   c o l o r :   # f f f ;   f o n t - s i z e :   1 . 4 e m ;   f o n t - w e i g h t :   7 0 0 ;   } 
 
 / *   S p e c s   T a b l e   * / 
 . s p e c - t a b l e   {   w i d t h :   1 0 0 % ;   b o r d e r - c o l l a p s e :   c o l l a p s e ;   } 
 . s p e c - t a b l e   t h ,   . s p e c - t a b l e   t d   { 
         p a d d i n g :   1 5 p x ; 
         b o r d e r - b o t t o m :   1 p x   s o l i d   # 2 2 2 ; 
         c o l o r :   # c c c ; 
         t e x t - a l i g n :   l e f t ; 
 } 
 . s p e c - t a b l e   t h   {   w i d t h :   4 0 % ;   c o l o r :   # 6 6 6 ;   f o n t - w e i g h t :   5 0 0 ;   } 
 
 / *   R e v i e w s   * / 
 . b t n - w r i t e   { 
         b a c k g r o u n d :   # f f f ;   c o l o r :   # 0 0 0 ; 
         b o r d e r :   n o n e ;   p a d d i n g :   1 0 p x   2 0 p x ; 
         b o r d e r - r a d i u s :   2 0 p x ;   f o n t - w e i g h t :   7 0 0 ;   c u r s o r :   p o i n t e r ; 
 } 
 . h i d d e n   {   d i s p l a y :   n o n e ;   } 
 . r e v i e w - f o r m   { 
         b a c k g r o u n d :   # 2 2 2 ;   p a d d i n g :   2 0 p x ;   b o r d e r - r a d i u s :   8 p x ;   m a r g i n - b o t t o m :   3 0 p x ; 
 } 
 . f o r m - r o w   {   d i s p l a y :   g r i d ;   g r i d - t e m p l a t e - c o l u m n s :   1 f r   1 f r ;   g a p :   1 0 p x ;   m a r g i n - b o t t o m :   1 0 p x ;   } 
 . r e v i e w - f o r m   i n p u t ,   . r e v i e w - f o r m   t e x t a r e a   { 
         w i d t h :   1 0 0 % ;   p a d d i n g :   1 0 p x ;   b a c k g r o u n d :   # 0 0 0 ;   b o r d e r :   1 p x   s o l i d   # 3 3 3 ;   c o l o r :   w h i t e ;   b o r d e r - r a d i u s :   4 p x ; 
 } 
 . r e v i e w - f o r m   b u t t o n   { 
         w i d t h :   1 0 0 % ;   p a d d i n g :   1 2 p x ;   b a c k g r o u n d :   # f f f ;   c o l o r :   # 0 0 0 ;   f o n t - w e i g h t :   7 0 0 ;   b o r d e r :   n o n e ;   b o r d e r - r a d i u s :   4 p x ;   m a r g i n - t o p :   1 0 p x ;   c u r s o r :   p o i n t e r ; 
 } 
 
 . r e v i e w - i t e m   { 
         p a d d i n g :   2 0 p x   0 ;   b o r d e r - b o t t o m :   1 p x   s o l i d   # 2 2 2 ; 
 } 
 . r w - h e a d e r   {   d i s p l a y :   f l e x ;   j u s t i f y - c o n t e n t :   s p a c e - b e t w e e n ;   m a r g i n - b o t t o m :   1 0 p x ;   f o n t - s i z e :   0 . 9 e m ;   } 
 . r w - a u t h o r   {   c o l o r :   # f f f ;   f o n t - w e i g h t :   7 0 0 ;   } 
 . r w - d a t e   {   c o l o r :   # 6 6 6 ;   } 
 . r w - c o n t e n t   {   c o l o r :   # c c c ;   l i n e - h e i g h t :   1 . 6 ;   } 
 
 / *   I n f o   T a b   * / 
 . i n f o - c a r d   { 
         b a c k g r o u n d :   # 0 a 0 a 0 a ;   p a d d i n g :   2 5 p x ;   b o r d e r - r a d i u s :   8 p x ;   m a r g i n - b o t t o m :   2 0 p x ;   b o r d e r :   1 p x   s o l i d   # 2 2 2 ; 
 } 
 . i n f o - c a r d   h 3   {   m a r g i n - t o p :   0 ;   c o l o r :   # f f f ;   f o n t - s i z e :   1 . 2 r e m ;   } 
 . i n f o - c a r d   p   {   c o l o r :   # 8 8 8 ;   l i n e - h e i g h t :   1 . 6 ;   m a r g i n - b o t t o m :   2 0 p x ;   } 
 . b t n - o f f i c i a l   { 
         d i s p l a y :   i n l i n e - b l o c k ;   p a d d i n g :   1 2 p x   3 0 p x ;   b a c k g r o u n d :   # c f 3 0 3 0 ;   c o l o r :   w h i t e ;   b o r d e r - r a d i u s :   4 p x ;   f o n t - w e i g h t :   7 0 0 ; 
 } 
 
 / *   M o b i l e   R e s p o n s i v e   * / 
 @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )   { 
         . d e t a i l - h e r o   {   h e i g h t :   3 0 0 p x ;   } 
         . h e r o - t i t l e   {   f o n t - s i z e :   2 r e m ;   } 
         . h i g h l i g h t - g r i d   {   g r i d - t e m p l a t e - c o l u m n s :   1 f r ;   } 
         . c o n t e n t - b o x   {   p a d d i n g :   2 0 p x ;   } 
         . d e t a i l - t a b s   {   f o n t - s i z e :   0 . 9 e m ;   g a p :   2 0 p x ;   } 
 } 
  
 / *   C l e a n u p :   R e m o v e d   d e t a i l   p a g e   s t y l e s   a s   t h e y   a r e   n o w   i n   d e t a i l _ p c . c s s   /   d e t a i l _ m o b i l e . c s s   * /  
 