/* Base Styles */
:root {
    --color-purple: #6c5ce7;
    --color-lavender: #a29bfe;
    --color-teal: #00b894;
    --color-mint: #55efc4;
    --color-pink: #fd79a8;
    --primary: var(--color-purple);
    --primary-dark: #5a4dbf;
    --primary-light: var(--color-lavender);
    --text: #2c3e50;
    --text-light: #555;
    --bg-color: #f9f7f3;
    --card-bg: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Header Bar */
header {
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-mint) 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 3px 10px rgba(108, 92, 231, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Section/Category Headers */
.category-header {
    background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-lavender) 100%);
    color: white;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

/* Tool Card Headers */
.tool-card-header {
    background: #8c7ae6;
    background-image: linear-gradient(45deg, #a29bfe 0%, #6c5ce7 100%);
    background-image: -webkit-linear-gradient(45deg, #a29bfe 0%, #6c5ce7 100%);
    background-image: -moz-linear-gradient(45deg, #a29bfe 0%, #6c5ce7 100%);
    color: white;
    padding: 20px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    font-weight: 600;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(108, 92, 231, 0.2);
}

.tool-card-header i {
    font-size: 1.5rem;
    margin-right: 5px;
}

/* Tool Card Styles */
.tool-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none !important; /* Remove underline from the card link */
    color: inherit; /* Inherit text color */
}

/* Remove underline from tool card links */
a.tool-card,
a.tool-card:hover,
a.tool-card:focus,
a.tool-card:active {
    text-decoration: none !important;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tool-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tool-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

/* Daily Prompt & Special Sections */
.daily-prompt {
    background: linear-gradient(135deg, var(--color-lavender) 0%, var(--color-purple) 100%);
    color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

/* Main Buttons */
.cta-button, .tool-button {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    padding: 10px 20px;
    font-weight: 500;
    cursor: pointer;
    font-size: 1rem;
    margin-top: auto;
}

.cta-button:hover, .tool-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 92, 231, 0.3);
}

.cta-button.secondary, .tool-button.secondary {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.cta-button.secondary:hover, .tool-button.secondary:hover {
    background-color: var(--primary);
    color: white;
}

/* Accent Pink Utility */
.accent-pink, .badge, .icon-accent {
    background-color: var(--color-pink) !important;
    color: white !important;
    border-radius: 20px;
    padding: 0 10px;
    font-weight: bold;
    font-size: 0.85em;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
}

.icon-accent:hover {
    box-shadow: 0 0 8px 2px var(--color-pink);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23f9f7f3"/><path d="M0 0L100 100M100 0L0 100" stroke="%23f0ebe1" stroke-width="0.5"/></svg>');
    margin: 0;
    padding: 0;
}

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

/* Header & Navigation */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 0;
    box-shadow: 0 3px 10px rgba(108, 92, 231, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    font-weight: 900;
    color: white;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: var(--transition);
    font-size: 0.95rem;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color:#6c5ce7;
    min-width: 200px;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    z-index: 1;
    top: 100%;
    left: 0;
    margin-top: 5px;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
    pointer-events: none;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    transition: var(--transition);
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1) 0%, rgba(162, 155, 254, 0.1) 100%);
    border-bottom: 1px solid rgba(108, 92, 231, 0.1);
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--text-light);
}

/* Page Header */
.page-header {
    padding: 60px 0 40px;
    text-align: center;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1) 0%, rgba(162, 155, 254, 0.1) 100%);
    margin-bottom: 40px;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Tools Section */
.tools-section {
    padding: 40px 0 80px;
}

.section-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Tool Cards */
.tool-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tool-card-header {
    padding: 25px 25px 15px;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.tool-card-header i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.tool-card-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.tool-card-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tool-card-body p {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-light);
    flex: 1;
}

/* Buttons */
.cta-button, .tool-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
}

.cta-button:hover, .tool-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cta-button i, .tool-button i {
    margin-left: 8px;
}

/* Category Cards */
.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.category-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.category-card-header {
    padding: 25px;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.category-card-header i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.category-card-header h3 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

.category-card-body {
    padding: 25px;
}

.category-card-body p {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-light);
}

.category-tools {
    margin-top: 20px;
}

.category-tools h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.category-tools ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-tools li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.category-tools li:last-child {
    border-bottom: none;
}

.category-tools a {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: var(--transition);
    width: 100%;
}

.category-tools a:hover {
    color: var(--primary-dark);
    padding-left: 5px;
}

.category-tools i {
    margin-right: 10px;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: rgba(255, 255, 255, 0.8);
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
}

footer p {
    margin: 0;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .tools-grid, .category-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .tools-grid, .category-cards {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-link {
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .nav-dropdown {
        width: 100%;
        text-align: center;
    }
    
    .dropdown-content {
        width: 100%;
        left: 0;
        right: 0;
        margin: 5px auto 0;
    }
}
