<!DOCTYPE html>
<html>
<head>
    <title>You won the auction!</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: 'Arial', sans-serif;
            background-color: #f7f7f7;
            line-height: 1.6;
            color: #333;
        }
        .container {
            max-width: 650px;
            margin: 20px auto;
            background: #ffffff;
            border-radius: 8px;
            overflow: hidden;
        }
        .header {
            background: #EFBF04;
            padding: 30px 20px;
            text-align: center;
            color: #1a0d1f;
        }
        .header h1 {
            font-size: 28px;
            font-weight: 700;
            letter-spacing: 1px;
            margin-bottom: 10px;
        }
        .content {
            padding: 40px 40px 30px;
            background: #fff;
        }
        .content p {
            font-size: 16px;
            margin-bottom: 15px;
            color: #555;
        }
        .content .greeting {
            font-size: 18px;
            font-weight: bold;
            color: #1a0d1f;
            margin-bottom: 15px;
        }
        .button {
            display: inline-block;
            background: #1a0d1f;
            color: #fff;
            padding: 12px 25px;
            text-decoration: none;
            font-weight: 600;
            border-radius: 5px;
            margin-top: 15px;
        }
        .footer {
            background: #EFBF04;
            color: #1a0d1f;
            padding: 20px 30px;
            font-size: 13px;
            text-align: center;
        }
        .footer a {
            color: #1a0d1f;
            text-decoration: none;
        }
        /* Responsive Design */
        @media (max-width: 600px) {
            .container {
                margin: 10px;
                border-radius: 0;
            }

            .header {
                padding: 20px;
            }

            .header h1 {
                font-size: 24px;
            }

            .header-1 h2 {
                font-size: 18px;
            }

            .content {
                padding: 20px;
            }

            .footer {
                padding: 15px;
            }
        }
    </style>
</head>
<body>
    <h1 style="text-align:center; padding: 25px 10px;">Torathy Auction</h1>
    <div class="header">
        <h1>Congratulations</h1>
    </div>
    <div class="container">
        <h1>Congratulations {{ $name }}!</h1>
        <p>You have won the auction for the product <strong>{{ $product->name }}</strong>.</p>
        <p>Please complete your payment within {{ $hours_valid }} days to confirm the purchase.</p>
        <p>If you fail to pay within {{ $hours_valid }} days, your bid will be forfeited and the product will be offered to the next highest bidder.</p><br>
        <p>Thank you!</p><br>
        <p>
            <a href="{{ $payment_link }}" style="padding: 10px 20px; background: green; color: white; text-decoration: none;">Payment Now</a>
        </p><br>
        <div class="footer">
            <p>Torathy Auction © All Rights Reserved</p>
        </div>
    </div>
</body>
</html>
