/* Main CSS for Saudi Riyal Symbol Website */

/* Font Face Declaration */
@font-face {
    font-family: 'SaudiRiyalSymbol';
    src: url('../fonts/saudi_riyal_symbol_official.woff2') format('woff2'),
         url('../fonts/saudi_riyal_symbol_official.woff') format('woff'),
         url('../fonts/saudi_riyal_symbol_official.ttf') format('truetype'),
         url('../fonts/saudi_riyal_symbol_official.svg#SaudiRiyalSymbol') format('svg');
    font-weight: normal;
    font-style: normal;
}

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

:root {
    --primary-color: #006c35; /* Saudi green */
    --secondary-color: #007a3d;
    --accent-color: #e4312b;
    --dark-color: #1a1a1a;
    --light-color: #f8f8f8;
    --gray-color: #e0e0e0;
    --text-color: #333333;
    --white-color: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
}

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

/* Saudi Riyal Symbol */
.saudi-riyal-symbol {
    font-family: 'SaudiRiyalSymbol', sans-serif;
}

.saudi-riyal-symbol::before {
    content: '\E000';
}

/* Symbol Sizes */
.size-small {
    font-size: 24px;
}

.size-medium {
    font-size: 48px;
}

.size-large {
    font-size: 96px;
}

/* Header Styles */
header {
    background-color: white;
    opacity: 0.8;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

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

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

.symbol-container {
    margin-right: 15px;
    font-size: 32px;
    color: #006c35;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
}

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

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

nav ul li a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: #006c35;
}

/* Hero Section */
#hero {
    background: linear-gradient(135deg, #006c35, #007a3d);
    color: white;
    padding: 150px 0 100px;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-symbol {
    font-size: 120px;
    margin: 40px 0;
    color: white;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.primary-btn {
    background-color: white;
    color: #006c35;
}

.primary-btn:hover {
    background-color: #f8f8f8;
    transform: translateY(-3px);
}

.secondary-btn {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.secondary-btn:hover {
    background-color: #ffffff;
    color: #006c35;
    transform: translateY(-3px);
}

/* About Section */
#about {
    padding: 100px 0;
    background-color: #ffffff;
}

#about h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: #1a1a1a;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.about-text {
    flex: 1;
    padding-right: 50px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.symbol-showcase {
    font-size: 180px;
    color: #006c35;
}

/* Showcase Section */
#showcase {
    padding: 100px 0;
    background-color: #f8f8f8;
}

#showcase h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: #1a1a1a;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.showcase-item {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.showcase-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.showcase-item h3 {
    margin-bottom: 20px;
    color: #006c35;
    font-size: 1.3rem;
}

.size-examples {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
}

.size-example {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.size-label {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #333333;
}

.context-examples {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.price-example {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
}

.vector-example {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
}

.svg-example {
    max-width: 100%;
    height: auto;
}

/* Usage Section */
#usage {
    padding: 100px 0;
    background-color: #ffffff;
}

#usage h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: #1a1a1a;
}

.usage-tabs {
    max-width: 900px;
    margin: 0 auto;
}

.tab-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #333333;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin: 0 5px;
}

.tab-btn:hover {
    color: #006c35;
}

.tab-btn.active {
    color: #006c35;
    border-bottom: 3px solid #006c35;
}

.tab-content {
    background-color: #ffffff;
    border-radius: 0 0 10px 10px;
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    margin-bottom: 20px;
    color: #006c35;
    font-size: 1.5rem;
}

.tab-pane h4 {
    margin: 25px 0 15px;
    color: #1a1a1a;
    font-size: 1.2rem;
}

.tab-pane p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.tab-pane ul, .tab-pane ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.tab-pane li {
    margin-bottom: 10px;
}

.code-example {
    background-color: #f8f8f8;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
    font-family: monospace;
    font-size: 1.1rem;
}

.code-block {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 5px;
    margin: 15px 0;
    font-family: monospace;
    white-space: pre-wrap;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Implementation Section */
#implementation {
    padding: 100px 0;
    background-color: #f8f8f8;
}

#implementation h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: #1a1a1a;
}

.implementation-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.implementation-item {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.implementation-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.implementation-icon {
    font-size: 2.5rem;
    color: #006c35;
    margin-bottom: 20px;
}

.implementation-item h3 {
    margin-bottom: 15px;
    color: #1a1a1a;
    font-size: 1.3rem;
}

.implementation-item p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Downloads Section */
#downloads {
    padding: 100px 0;
    background-color: #ffffff;
}

#downloads h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: #1a1a1a;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.download-item {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.download-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.download-icon {
    font-size: 2.5rem;
    color: #006c35;
    margin-bottom: 20px;
}

.download-item h3 {
    margin-bottom: 15px;
    color: #1a1a1a;
    font-size: 1.3rem;
}

.download-item p {
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.download-btn {
    background-color: #006c35;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.download-btn:hover {
    background-color: #007a3d;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 20px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo .saudi-riyal-symbol {
    font-size: 48px;
    color: #ffffff;
    margin-bottom: 15px;
}

.footer-logo p {
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-links h4, .footer-legal h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: #ffffff;
}

.footer-legal p {
    color: #e0e0e0;
    line-height: 1.7;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .implementation-grid, .downloads-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 20px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text {
        padding-right: 0;
        margin-bottom: 50px;
    }
    
    .showcase-grid {
        grid-template-columns: 1fr;
    }
    
    .implementation-grid, .downloads-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    #hero {
        padding: 180px 0 80px;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .btn {
        display: block;
        margin: 10px auto;
        width: 80%;
    }
}
