/* AmkyawDev - Components CSS */

/* Cards */
.template-card, .project-card, .doc-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.template-card:hover, .project-card:hover, .doc-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-xl);
}

.template-image, .project-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.template-image img, .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.template-card:hover .template-image img,
.project-card:hover .project-image img {
    transform: scale(1.1);
}

.template-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: var(--transition);
}

.template-card:hover .template-overlay {
    opacity: 1;
}

.template-info, .project-info {
    padding: 20px;
}

.template-info .category, .project-info .category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.template-info h3, .project-info h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.template-info p, .project-info p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.template-features, .technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.feature-tag, .tech-tag {
    padding: 4px 10px;
    background: rgba(79, 70, 229, 0.2);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

.template-footer, .project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
}

/* Template & Project Grids */
.templates-grid, .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Project Status */
.project-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 15px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.project-status.completed {
    background: var(--secondary-color);
    color: var(--white);
}

.project-status.in-progress {
    background: var(--accent-color);
    color: var(--black);
}

.project-status.pending {
    background: var(--text-light);
    color: var(--white);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--white);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

/* Buttons */
.btn-icon {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
}

.btn-icon:hover {
    color: var(--primary-color);
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Filters */
.filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--white);
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.category-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Auth Cards */
.auth-required {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
}

.auth-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 400px;
}

.auth-card h2 {
    color: var(--white);
    margin-bottom: 15px;
}

.auth-card p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Dashboard */
.dashboard-container {
    padding: 100px 0 50px;
    min-height: 100vh;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.dashboard-header h1 {
    color: var(--white);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card i {
    font-size: 2rem;
    color: var(--primary-color);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-info .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.stat-info .stat-label {
    color: var(--text-light);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-card h3 {
    color: var(--white);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-card h3 i {
    color: var(--primary-color);
}

/* Lists */
.download-list li, .favorites-list li, .notification-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.download-list li:last-child, 
.favorites-list li:last-child, 
.notification-list li:last-child {
    border-bottom: none;
}

.download-list li img, .favorites-list li img {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.download-list li h4, .favorites-list li h4 {
    color: var(--white);
    margin-bottom: 5px;
}

.download-list li p, .favorites-list li p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.notification-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.notification-list li i {
    color: var(--primary-color);
    margin-top: 3px;
}

.notification-list li p {
    color: var(--text-light);
}

/* Admin */
.admin-container {
    padding: 100px 0 50px;
    min-height: 100vh;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.admin-header h1 {
    color: var(--white);
}

.admin-tabs {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tabs button {
    flex: 1;
    padding: 20px;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
}

.tabs button:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.tabs button.active {
    background: rgba(79, 70, 229, 0.2);
    color: var(--white);
    border-bottom: 2px solid var(--primary-color);
}

.tab-content {
    padding: 30px;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.tab-header h2 {
    color: var(--white);
}

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table th {
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.admin-table td {
    color: var(--white);
}

.admin-table .status {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.admin-table .status.completed {
    background: var(--secondary-color);
    color: var(--white);
}

.admin-table .role {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.admin-table .role.admin {
    background: var(--primary-color);
    color: var(--white);
}

.admin-table .role.user {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* Messages */
.messages-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.message-header h4 {
    color: var(--white);
}

.message-header .date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.message-item > p {
    color: var(--text-light);
    margin-bottom: 15px;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.method {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.method i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.method h3 {
    color: var(--white);
    margin-bottom: 5px;
}

.method p {
    color: var(--text-light);
}

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Docs Section */
.docs-section {
    padding: 80px 0;
}

.docs-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

.docs-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.docs-sidebar h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.category-list {
    margin-bottom: 30px;
}

.category-list li a {
    display: block;
    padding: 10px 15px;
    color: var(--text-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.category-list li a:hover, 
.category-list li a.active {
    background: rgba(79, 70, 229, 0.2);
    color: var(--white);
}

.docs-content .docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.doc-card {
    padding: 25px;
}

.doc-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.doc-meta .category {
    color: var(--primary-color);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.read-time {
    color: var(--text-light);
    font-size: 0.85rem;
}

.read-time i {
    margin-right: 5px;
}

.doc-card h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.doc-card > p {
    color: var(--text-light);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.doc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tags {
    display: flex;
    gap: 8px;
}

.tag {
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

.author {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Testimonials */
.testimonials {
    background: rgba(15, 23, 42, 0.5);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.testimonial-text {
    color: var(--white);
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 25px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    color: var(--white);
    margin-bottom: 5px;
}

.testimonial-author p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.slider-controls button {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.slider-controls button:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Timeline */
.timeline {
    background: rgba(15, 23, 42, 0.5);
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    padding: 20px 0;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    padding-right: 40px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: 40px;
    margin-left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 25px;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

.timeline-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.timeline-content h4 {
    color: var(--white);
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .docs-grid {
        grid-template-columns: 1fr;
    }
    
    .docs-sidebar {
        position: static;
    }
    
    .timeline-container::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 50px !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        text-align: left !important;
    }
    
    .timeline-dot {
        left: 12px !important;
        right: auto !important;
    }
}
/* Mobile Menu Button */
.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1002; }
.menu-toggle span { width: 28px; height: 3px; background: white; border-radius: 3px; transition: all 0.3s; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

@media (max-width: 968px) {
    .menu-toggle { display: flex; }
    .nav-links { position: fixed; top: 80px; left: -100%; width: 100%; background: rgba(15, 23, 42, 0.98); flex-direction: column; padding: 20px; transition: left 0.3s ease; z-index: 1001; }
    .nav-links.active { left: 0; }
    .nav-links li { margin: 10px 0; }
}

/* Slider & Carousel */
.slider-container { position: relative; overflow: hidden; padding: 0 40px; }
.slider-wrapper { display: flex; transition: transform 0.5s ease; }
.slider-card { flex: 0 0 calc(33.333% - 20px); margin: 0 10px; min-width: 280px; }
.slider-prev, .slider-next { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; background: rgba(79, 70, 229, 0.8); border: none; border-radius: 50%; color: white; cursor: pointer; z-index: 10; transition: all 0.3s; }
.slider-prev { left: 0; }
.slider-next { right: 0; }
.slider-prev:hover, .slider-next:hover { background: #4f46e5; transform: translateY(-50%) scale(1.1); }

.carousel-auto { display: flex; overflow-x: auto; scroll-behavior: smooth; -ms-overflow-style: none; scrollbar-width: none; }
.carousel-auto::-webkit-scrollbar { display: none; }
.carousel-item { flex: 0 0 auto; margin-right: 20px; }

/* Page Animations */
.page-fade { animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.slide-up { animation: slideUp 0.6s ease; }
@keyframes slideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
