/* --- General Styles & Fonts --- */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    color: #333;
}

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

/* --- Header --- */
header {
    background-color: #ffffff;
    padding: 20px 40px;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}

header h1 {
    margin: 0;
    font-weight: 500;
    color: #202124;
}

header p {
    margin-top: 5px;
    color: #5f6368;
}


/* --- Featured Banner --- */
.featured-banner {
    display: flex;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 40px;
    align-items: center;
    border: 1px solid #e0e0e0;
}

.banner-image-container {
    flex-basis: 55%;
    flex-shrink: 0;
}

#featured-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.banner-info {
    padding: 30px;
    flex-basis: 45%;
}

#featured-title {
    font-size: 28px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 15px;
    color: #202124;
}

#featured-description {
    font-size: 16px;
    line-height: 1.6;
    color: #5f6368;
    margin-bottom: 25px;
}

.add-button {
    display: inline-block;
    background-color: #1a73e8;
    color: #ffffff;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 5px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.2s ease;
}

.add-button:hover {
    background-color: #1765cc;
}

/* --- Extension Grid --- */
.extension-grid-container h3 {
    font-size: 22px;
    font-weight: 500;
    color: #202124;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

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

.extension-card {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.extension-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.extension-card.active {
    border-left: 4px solid #1a73e8;
    border-color: #1a73e8;
}

.extension-card .icon {
    width: 64px;
    height: 64px;
    margin-right: 15px;
    border-radius: 8px;
}

.extension-card .info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 500;
    color: #202124;
}

.extension-card .info p {
    margin: 0;
    font-size: 14px;
    color: #5f6368;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .featured-banner {
        flex-direction: column;
    }

    #featured-image {
        height: 250px;
    }

    .banner-info {
        padding: 20px;
    }
}




/* --- Installation Guide & Modal --- */
.install-guide-link {
    font-size: 15px;
    color: #5f6368;
}

#open-guide-link {
    color: #1a73e8;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

#open-guide-link:hover {
    text-decoration: underline;
}

.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

/* Class to show the modal */
.modal-overlay.visible {
    display: flex;
}

.modal-content {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 650px;
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    border: none;
    background: none;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #333;
}

.modal-content h2 {
    margin-top: 0;
    color: #202124;
    text-align: center;
    margin-bottom: 25px;
}

.guide-steps h3 {
    font-size: 18px;
    color: #1a73e8;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
    margin-top: 20px;
    margin-bottom: 15px;
}

.guide-steps ol {
    padding-left: 20px;
    line-height: 1.8;
}

.guide-steps li {
    margin-bottom: 10px;
}

.guide-steps code {
    background-color: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
}

.guide-success {
    text-align: center;
    font-weight: 500;
    color: #19B53E;
    margin-top: 30px;
    font-size: 16px;
}




/* --- Custom Header Styles --- */
.header-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px; /* Adds space between logo and title */
}

.header-logo {
    height: 50px; /* Adjust size as needed */
}

/* Apply the new font to the main title */
header h1 {
    font-family: 'Playwrite VN', cursive;
}

/* --- Subtitle Font Styling --- */
.custom-subtitle {
    font-size: 20px; /* Base font size for the subtitle line */
    margin-top: 15px;
}

.subtitle-part1 {
    font-family: 'Tulpen One', sans-serif;
    font-size: 1.2em; /* Makes this part slightly larger */
    color: #5f6368;
}

.author-name {
    font-family: 'Delius Swash Caps', cursive;
    font-size: 1.1em;
    color: #333;
    font-weight: bold;
}

.company-name {
    font-family: 'Gamja Flower', cursive;
    font-size: 1.3em; /* Makes this part stand out */
    color: #1a73e8; /* Blue color to match buttons */
    font-weight: bold;
}