/* css/styles.css - Main stylesheet for UnigDesige Golf Shafts */

/* Base styles reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header navigation */
header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

.logo-accent {
    color: #2a7a2a;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #2a7a2a;
    transition: width 0.3s;
}

nav ul li a:hover {
    color: #2a7a2a;
}

nav ul li a:hover:after {
    width: 100%;
}

/* Hero banner with WebP fallback */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4)), url('../images/main1.webp') no-repeat center center/cover;
    height: 85vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: left;
}

/* JPEG fallback for browsers that don't support WebP */
.no-webp .hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4)), url('../images/main1.jpg') no-repeat center center/cover;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    max-width: 600px;
}

.btn {
    display: inline-block;
    background-color: #2a7a2a;
    color: white;
    padding: 14px 35px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid #2a7a2a;
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    color: #2a7a2a;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    margin-left: 15px;
}

.btn-outline:hover {
    background-color: white;
    color: #2a7a2a;
}

/* About us section */
.about {
    padding: 100px 0;
    background-color: #f8f8f8;
}

.about-content {
    display: flex;
    align-items: stretch;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    min-height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.section-title {
    margin-bottom: 30px;
}

.section-title h1,
.section-title h2 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.section-title p {
    color: #666;
    max-width: 500px;
    line-height: 1.5;
}

/* Product features */
.features {
    padding: 100px 0;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.8;
    color: #333;
}

.intro-content h3 {
    font-size: 1.8rem;
    color: #2a7a2a;
    margin: 30px 0 15px;
}

.intro-content h4 {
    font-size: 1.3rem;
    color: #1a1a1a;
    margin: 20px 0 10px;
}

.intro-content p {
    margin-bottom: 15px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 100px;
    height: 100px;
    background-color: #e8f5e8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    overflow: hidden;
}

.feature-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* Technical specifications */
.specs {
    padding: 100px 0;
    background-color: #f8f8f8;
}

.specs-content {
    display: flex;
    gap: 60px;
    align-items: stretch;
}

.specs-list {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.spec-model-group {
    margin-bottom: 25px;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.spec-model-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2a7a2a;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.spec-item {
    margin-bottom: 15px;
}

.spec-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.spec-name {
    font-weight: 600;
}

.spec-value {
    color: #2a7a2a;
    font-weight: 600;
}

.spec-bar {
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.spec-progress {
    height: 100%;
    background-color: #2a7a2a;
}

.spec-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
}

.spec-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.spec-button-container {
    margin-top: 10px;
    text-align: center;
}

/* Full specifications page */
.full-specs-page {
    padding: 100px 0;
    background-color: #f8f8f8;
}

.full-specs-container {
    max-width: 1200px;
    margin: 0 auto;
}

.full-specs-series {
    margin-bottom: 50px;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.series-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.series-title-info {
    flex: 1;
}

.series-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.series-subtitle {
    color: #666;
    font-size: 1rem;
    line-height: 1.4;
}

.series-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e63946;
    background-color: #ffe6e8;
    padding: 8px 20px;
    border-radius: 20px;
}

.series-1 .series-title {
    color: #2a9d8f;
}

.series-2 .series-title {
    color: #0060a3;
}

.series-3 .series-title {
    color: #e63946;
}

.full-specs-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.full-spec-model-group {
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 8px;
    border-left: 4px solid #2a7a2a;
}

.full-spec-model-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.full-spec-item {
    margin-bottom: 15px;
}

.full-spec-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.full-spec-bar {
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.full-spec-progress {
    height: 100%;
    background-color: #2a7a2a;
}

.tech-highlights {
    background-color: white;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tech-highlights h3 {
    color: #0058a3;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.tech-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.tech-item {
    padding: 15px;
    background-color: #f8fafd;
    border-radius: 8px;
    border-left: 4px solid #0060a3;
}

.tech-item h4 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.tech-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.back-btn {
    display: inline-block;
    margin-top: 30px;
    background-color: #1a1a1a;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
}

.back-btn:hover {
    background-color: #2a7a2a;
}

/* Applications section */
.applications {
    padding: 100px 0;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.app-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.app-card:hover {
    transform: translateY(-5px);
}

.app-image {
    height: 200px;
    overflow: hidden;
}

.app-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.app-card:hover .app-image img {
    transform: scale(1.05);
}

.app-content {
    padding: 25px;
}

.app-content h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.app-content p {
    line-height: 1.6;
    color: #666;
}

/* Footer */
footer {
    background-color: #111;
    color: #aaa;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: white;
}

.footer-column p {
    color: #aaa;
    line-height: 1.6;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #777;
    font-size: 0.9rem;
}

/* Blog article image styles */
.article-image {
    margin: 30px 0;
    text-align: center;
}

.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
}

.image-caption {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 8px;
    text-align: center;
    line-height: 1.4;
}

/* Picture element image styling */
picture img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 992px) {
    .about-content, .specs-content {
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .spec-image, .about-image {
        min-height: 300px;
        margin-top: 30px;
    }
    
    .specs-content {
        gap: 30px;
    }
    
    .series-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .series-price {
        margin-top: 15px;
        align-self: flex-start;
    }
    
    .section-title h1,
    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .tech-list {
        grid-template-columns: 1fr;
    }
    
    .full-specs-list {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .applications-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title h1,
    .section-title h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .series-price {
        font-size: 1.2rem;
        padding: 6px 15px;
    }
    
    .header-container {
        padding: 10px 0;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .logo-text {
        font-size: 20px;
    }
}

/* Blog Article Table Styles */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 1rem;
    font-family: inherit;
    min-width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
}

.article-content thead tr {
    background-color: #2a7a2a;
    color: white;
    text-align: left;
    font-weight: 600;
}

.article-content th {
    padding: 15px 12px;
    font-weight: 600;
    border: none;
    position: relative;
}

.article-content tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.article-content tbody tr:nth-of-type(even) {
    background-color: #f9f9f9;
}

.article-content tbody tr:nth-of-type(odd) {
    background-color: white;
}

.article-content tbody tr:hover {
    background-color: #f0f7f0;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.article-content td {
    padding: 14px 12px;
    border: none;
    line-height: 1.5;
    vertical-align: top;
}

.article-content tbody tr:last-of-type {
    border-bottom: 2px solid #2a7a2a;
}

.article-content tbody tr.highlight {
    background-color: #e8f5e8;
    font-weight: 500;
}

.article-content tbody tr.highlight:hover {
    background-color: #d8f0d8;
}

.article-content td[data-series="club"] {
    border-left: 4px solid #2a9d8f;
    padding-left: 8px;
}

.article-content td[data-series="advanced"] {
    border-left: 4px solid #0060a3;
    padding-left: 8px;
}

.article-content td[data-series="pro"] {
    border-left: 4px solid #e63946;
    padding-left: 8px;
}

.article-content table a {
    color: #2a7a2a;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dotted transparent;
    transition: all 0.2s;
}

.article-content table a:hover {
    color: #1f5f1f;
    border-bottom: 1px dotted #2a7a2a;
}

.article-content table ul,
.article-content table ol {
    margin: 5px 0 5px 15px;
    padding-left: 0;
}

.article-content table li {
    margin-bottom: 3px;
    line-height: 1.4;
}

.article-content table code {
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e63946;
}

.article-content table .table-btn {
    display: inline-block;
    padding: 6px 12px;
    background-color: #2a7a2a;
    color: white;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.2s;
}

.article-content table .table-btn:hover {
    background-color: #1f5f1f;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .article-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 20px -10px;
        border-radius: 0;
        box-shadow: none;
        border: 1px solid #f0f0f0;
    }
    
    .article-content table thead {
        display: none;
    }
    
    .article-content table tbody,
    .article-content table tr,
    .article-content table td {
        display: block;
        width: 100%;
    }
    
    .article-content table tr {
        margin-bottom: 15px;
        border: 1px solid #f0f0f0;
        border-radius: 6px;
        overflow: hidden;
    }
    
    .article-content table td {
        padding: 12px 10px;
        text-align: right;
        position: relative;
        border-bottom: 1px solid #f8f8f8;
    }
    
    .article-content table td:last-child {
        border-bottom: none;
    }
    
    .article-content table td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        top: 12px;
        font-weight: 600;
        color: #2a7a2a;
        text-align: left;
    }
    
    .article-content table td[data-label] {
        padding-left: 40%;
    }
    
    .article-content table td:empty {
        display: none;
    }
    
    .article-content tbody tr:nth-of-type(even),
    .article-content tbody tr:nth-of-type(odd) {
        background-color: white;
    }
    
    .article-content tbody tr:hover {
        background-color: #f9f9f9;
        transform: none;
        box-shadow: none;
    }
}

@media print {
    .article-content table {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .article-content thead tr {
        background-color: #f8f8f8 !important;
        color: #000;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .article-content tbody tr {
        break-inside: avoid;
    }
    
    .article-content table a {
        color: #000;
        text-decoration: underline;
    }
    
    .article-content table a:after {
        content: " (" attr(href) ")";
        font-size: 0.9em;
        color: #666;
    }
}

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

.article-content tbody tr {
    animation: tableRowAppear 0.3s ease forwards;
}

.article-content tbody tr:nth-child(1) { animation-delay: 0.05s; }
.article-content tbody tr:nth-child(2) { animation-delay: 0.1s; }
.article-content tbody tr:nth-child(3) { animation-delay: 0.15s; }
.article-content tbody tr:nth-child(4) { animation-delay: 0.2s; }
.article-content tbody tr:nth-child(5) { animation-delay: 0.25s; }
.article-content tbody tr:nth-child(6) { animation-delay: 0.3s; }
.article-content tbody tr:nth-child(7) { animation-delay: 0.35s; }
.article-content tbody tr:nth-child(8) { animation-delay: 0.4s; }
.article-content tbody tr:nth-child(9) { animation-delay: 0.45s; }
.article-content tbody tr:nth-child(10) { animation-delay: 0.5s; }

.table-container {
    position: relative;
    margin: 25px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.table-scroll-wrapper {
    overflow-x: auto;
    border-radius: 8px;
}

.table-title {
    background-color: #2a7a2a;
    color: white;
    padding: 12px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
}

.table-caption {
    padding: 10px 15px;
    background-color: #f8f8f8;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    border-top: 1px solid #f0f0f0;
    font-style: italic;
}

.table-footer {
    padding: 10px 15px;
    background-color: #f8f8f8;
    font-size: 0.85rem;
    color: #666;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}