/*
Theme Name: Image Editor Pro
Theme URI: https://example.com
Author: Image Editor Team
Author URI: https://example.com
Description: A professional photo editing toolkit theme for WordPress with multiple image processing tools
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: image-editor-pro
Tags: photography, image-editing, tools, custom-design
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
}

/* WordPress Override - Remove default content wrapper styles */
.site-main,
#main,
.site-content,
#primary {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Ensure body and main container don't constrain width */
body,
#page,
.site {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Force grid layout - High specificity */
body .tools-grid,
main .tools-grid,
.site-main .tools-grid,
#main .tools-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    max-width: 1280px !important;
    margin: 0 auto 4rem !important;
    padding: 0 1rem 2rem !important;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #1f2937;
}

.logo-icon {
    background: #3b82f6;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-navigation a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    transition: color 0.2s;
}

.main-navigation a:hover {
    color: #1f2937;
}

.nav-dropdown {
    position: relative;
}

.tools-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
}

.dropdown-icon {
    transition: transform 0.2s;
}

.nav-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    width: 16rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #374151;
    transition: background-color 0.2s;
}

.dropdown-item span {
    font-size: 0.875rem;
    font-weight: 500;
}

.dropdown-item svg {
    flex-shrink: 0;
}

.item-pink {
    background-color: #fdf2f8;
}

.item-pink:hover {
    background-color: #fce7f3;
}

.item-pink svg {
    stroke: #ec4899;
}

.item-blue {
    background-color: #eff6ff;
}

.item-blue:hover {
    background-color: #dbeafe;
}

.item-blue svg {
    stroke: #3b82f6;
}

.item-green {
    background-color: #f0fdf4;
}

.item-green:hover {
    background-color: #dcfce7;
}

.item-green svg {
    stroke: #22c55e;
}

.item-teal {
    background-color: #f0fdfa;
}

.item-teal:hover {
    background-color: #ccfbf1;
}

.item-teal svg {
    stroke: #14b8a6;
}

.item-cyan {
    background-color: #ecfeff;
}

.item-cyan:hover {
    background-color: #cffafe;
}

.item-cyan svg {
    stroke: #06b6d4;
}

.item-purple {
    background-color: #faf5ff;
}

.item-purple:hover {
    background-color: #f3e8ff;
}

.item-purple svg {
    stroke: #a855f7;
}

.site-main {
    flex: 1;
}

.hero-section {
    padding: 4rem 1rem;
}

.hero-content {
    max-width: 1280px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    text-align: center;
    color: #4b5563;
}

.tools-grid {
    max-width: 1280px !important;
    margin: 0 auto 4rem !important;
    padding: 0 1rem 2rem !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    list-style: none !important;
}

@media (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.tool-card {
    border-radius: 1rem !important;
    padding: 2rem !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    transition: box-shadow 0.2s !important;
    display: block !important;
    width: 100% !important;
}

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

.tool-icon {
    width: 4rem !important;
    height: 4rem !important;
    border-radius: 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 1.5rem !important;
}

.tool-title {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.75rem !important;
    margin-top: 0 !important;
}

.tool-description {
    color: #4b5563 !important;
    margin-bottom: 1.5rem !important;
    min-height: 48px !important;
    margin-top: 0 !important;
}

.tool-button {
    display: block !important;
    text-align: center !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.5rem !important;
    text-decoration: none !important;
    transition: opacity 0.2s !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.tool-button:hover {
    opacity: 0.9;
}

.site-footer {
    background: linear-gradient(to right, #3b82f6, #06b6d4);
    color: #ffffff;
    padding: 3rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

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

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: #ffffff;
}

.footer-bottom {
    max-width: 1280px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.upload-area {
    background: #ffffff;
    border: 2px dashed #d1d5db;
    border-radius: 1rem;
    padding: 2rem;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-content {
    text-align: center;
}

.upload-icon {
    width: 4rem;
    height: 4rem;
    color: #9ca3af;
    margin: 0 auto 1rem;
}

.btn-primary {
    background: linear-gradient(to right, #ec4899, #f97316);
    color: #ffffff;
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.9;
}

.tool-controls {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
}

.control-group {
    margin-bottom: 1.5rem;
}

.control-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

input[type="range"] {
    width: 100%;
}

.btn-download {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(to right, #ec4899, #f97316);
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-download:hover {
    opacity: 0.9;
}

.btn-download:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem !important;
    }

    .tools-grid {
        grid-template-columns: 1fr !important;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
    }
}
