/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

#hashtag-counter {
  font-family: 'Inter', sans-serif;
  background: #f8fafc;
  padding: 12px;
  border-radius: 8px;
  display: inline-block;
  font-weight: 600;
}

#dynamic-count {
  font-size: 22px;
  color: #1e40af;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h1 {
    color: #1DA1F2;
    font-size: 1.8rem;
}

.highlight {
    color: #E1306C;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: #1DA1F2;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1DA1F2, #405DE6);
    color: white;
    padding: 8rem 5% 4rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.platform-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.platform-icons i {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.platform-icons i:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.instagram-icon {
    color: #E1306C;
}

.facebook-icon {
    color: #1877F2;
}

.tiktok-icon {
    color: #000000;
}

.twitter-icon {
    color: #1DA1F2;
}

.youtube-icon {
    color: #FF0000;
}

.search-box {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.dropdown-container {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.custom-select {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.custom-select select {
    display: block;
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: white;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.select-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #1DA1F2;
}

.custom-select select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(29,161,242,0.5);
}

#generate-btn {
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, #1DA1F2, #405DE6);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(29,161,242,0.5);
    width: 100%;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

#generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(29,161,242,0.6);
    animation: none;
}

#generate-btn:active {
    transform: translateY(0);
}

@keyframes pulse {
    0% { box-shadow: 0 4px 15px rgba(29,161,242,0.5); }
    50% { box-shadow: 0 4px 25px rgba(29,161,242,0.8); }
    100% { box-shadow: 0 4px 15px rgba(29,161,242,0.5); }
}

/* Discover Section */
.discover-section {
    padding: 5rem 5%;
    background-color: #f5f8fa;
}

.discover-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.discover-text {
    padding: 3rem;
}

.discover-text h2 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.accent-text {
    color: #1DA1F2;
    position: relative;
}

.accent-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #1DA1F2;
    border-radius: 3px;
}

.discover-text > p {
    color: #666;
    font-size: 1.1rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-box {
    display: flex;
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.benefit-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1DA1F2, #405DE6);
    border-radius: 12px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.benefit-icon i {
    color: white;
    font-size: 1.5rem;
}

.benefit-content h3 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.benefit-content p {
    color: #666;
    font-size: 0.95rem;
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2.5rem;
    color: #1DA1F2;
    margin-bottom: 1rem;
}

/* Results Section */
.results {
    background-color: #f9f9f9;
    padding: 4rem 5%;
}

.results-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.caption-section, .hashtag-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.caption-list, .hashtag-list {
    margin-top: 1rem;
}

/* Instagram Demo Section */
.instagram-demo {
    padding: 5rem 5%;
    background-color: #f9f9f9;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.instagram-feed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.instagram-post {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.instagram-post:hover {
    transform: translateY(-5px);
}

.post-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #f1f1f1;
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 0.8rem;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h4 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.profile-info p {
    font-size: 0.8rem;
    color: #888;
}

.post-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.instagram-post:hover .post-image img {
    transform: scale(1.05);
}

.post-engagement {
    padding: 1rem;
    border-bottom: 1px solid #f1f1f1;
}

.engagement-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.engagement-icons i {
    font-size: 1.3rem;
    cursor: pointer;
    transition: color 0.2s;
}

.engagement-icons i.fa-heart {
    color: #E1306C;
}

.engagement-icons i.fa-comment,
.engagement-icons i.fa-paper-plane {
    color: #555;
}

.likes-count {
    font-size: 0.9rem;
}

.post-caption {
    padding: 1rem;
}

.post-caption p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.hashtags {
    color: #1DA1F2;
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
}

.demo-cta {
    text-align: center;
    margin-top: 3rem;
}

.demo-cta p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #1DA1F2, #405DE6);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(29, 161, 242, 0.4);
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    text-align: center;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #1DA1F2;
}

.footer-section a {
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #1DA1F2;
}

.footer-links {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-links a {
    display: inline-block;
    margin: 0 0.5rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .platform-icons {
        gap: 1rem;
    }

    .platform-icons i {
        font-size: 2rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .benefit-box {
        padding: 1.2rem;
    }

    .benefit-icon {
        width: 50px;
        height: 50px;
    }

    .benefit-content h3 {
        font-size: 1.1rem;
    }

    .discover-text {
        padding: 2rem 1.5rem;
    }

    .discover-text h2 {
        font-size: 1.8rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .results-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-section {
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-links a {
        margin: 0.5rem 0;
    }

    .dropdown-container {
        flex-direction: column;
    }
    
    .custom-select {
        width: 100%;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.caption-list, .hashtag-list {
    animation: fadeIn 0.5s ease-out;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle i {
    font-size: 1.5rem;
    color: #333;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 0.5rem 1rem;
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
    }
}

/* Content Section Styles */
.content-section, .tips-section, .tutorial-section {
    padding: 4rem 5%;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.content-section {
    background-color: #ffffff;
}

.tips-section {
    background-color: #f8f9fa;
}

.tutorial-section {
    background-color: #ffffff;
    border-bottom: none;
}

/* Add container class styling if not already globally defined */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Shared Section Title Style */
.content-section h2, .tips-section h2, .tutorial-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: #333;
    position: relative;
}

.content-section h2::after, .tips-section h2::after, .tutorial-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #1DA1F2;
    border-radius: 3px;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.article-content h3 {
    color: #1DA1F2;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    
    padding-left: 1rem;
}

.article-content h4 {
    color: #333;
    margin: 2.5rem 0 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 1.5rem;
    color: #555;
}

.article-content ul, .article-content ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 1rem;
    color: #555;
    padding-left: 0.5rem;
}

.article-content ul li::marker {
    color: #1DA1F2;
    font-size: 1.2em;
}

.article-content ol {
    list-style: none;
    counter-reset: guide-counter;
}

.article-content ol li {
    counter-increment: guide-counter;
    position: relative;
}

.article-content ol li::before {
    content: counter(guide-counter);
    position: absolute;
    left: -2.5rem;
    top: 0;
    background-color: #1DA1F2;
    color: white;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Tips Section Styles */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.tip-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tip-card h3 {
    color: #1DA1F2;
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
}

.tip-card h3 i {
    margin-right: 0.8rem;
    color: #E1306C;
    font-size: 1.5rem;
}

.tip-card p {
    color: #555;
    line-height: 1.7;
}

/* Tutorial Section Styles */
.tutorial-steps {
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tutorial-content h3 {
    text-align: center;
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 2rem;
}

.step {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 5px solid #1DA1F2;
    position: relative;
    transition: background-color 0.3s ease;
}

.step:hover {
    background-color: #e9ecef;
}

.step h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}

.step h4 .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: #E1306C;
    color: white;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step p {
    color: #555;
    line-height: 1.7;
    padding-left: 3.5rem;
}

/* Responsive Styles for Content Sections */
@media (max-width: 768px) {
    .content-section, .tips-section, .tutorial-section {
        padding: 3rem 1rem;
    }

    .content-section h2, .tips-section h2, .tutorial-section h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .article-content {
        padding: 0 1rem;
    }

    .article-content h3 {
        font-size: 1.5rem;
    }
    
    .article-content h4 {
        font-size: 1.2rem;
    }

    .article-content ol li::before {
        left: -2rem;
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.8rem;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .step h4 {
        font-size: 1.2rem;
    }

    .step h4 .step-number {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }

    .step p {
        padding-left: 3rem;
    }
}

/* FAQ Section Styles */
.faq-section {
    padding: 4rem 5%;
    background-color: #f8f9fa; /* Light background for contrast */
    border-top: 1px solid #e9ecef;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: #333;
    position: relative;
}

.faq-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #1DA1F2; /* Use theme color */
    border-radius: 3px;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: #ffffff;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    overflow: hidden; /* Important for animation */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    background-color: transparent;
    border: none;
    padding: 1.5rem 2rem;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f1f3f5;
}

.faq-question span {
    flex-grow: 1;
    margin-right: 1rem;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: #1DA1F2;
    font-size: 1rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background-color: #ffffff;
}

.faq-answer p {
    padding: 0 2rem 1.5rem 2rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

.faq-item.active .faq-answer {
    /* max-height will be set by JS, but provide a large enough value */
    max-height: 500px; 
    padding-top: 0; /* Start padding transition */
}

/* Responsive FAQ */
@media (max-width: 768px) {
    .faq-section {
        padding: 3rem 1rem;
    }
    .faq-section h2 {
        font-size: 1.8rem;
    }
    .faq-question {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    .faq-answer p {
        padding: 0 1.5rem 1rem 1.5rem;
    }
} 